Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15 from wintoncode/remove_debug
Browse files Browse the repository at this point in the history
Remove debugging leftover
  • Loading branch information
ah- authored Aug 14, 2018
2 parents d027312 + eb2a6fc commit fe16764
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend_ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ func (b *backend) getUserDN(cfg *ConfigEntry, c *ldap.Conn, bindDN string) (stri
*/
func (b *backend) getUserBindDN(cfg *ConfigEntry, c *ldap.Conn, username string) (string, error) {
bindDN := ""
// TODO: fix this and remove && false. should probably work but some config is wrong
if cfg.DiscoverDN || (cfg.BindDN != "" && cfg.BindPassword != "") && false {
if cfg.DiscoverDN || (cfg.BindDN != "" && cfg.BindPassword != "") {
var err error
if cfg.BindPassword != "" {
err = c.Bind(cfg.BindDN, cfg.BindPassword)
Expand Down

0 comments on commit fe16764

Please sign in to comment.