From eb2a6fc089da0083e0fbe78f6b0e8961ac7d4867 Mon Sep 17 00:00:00 2001 From: Andreas Heider Date: Tue, 14 Aug 2018 16:30:57 +0100 Subject: [PATCH] Remove debugging leftover --- backend_ldap.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend_ldap.go b/backend_ldap.go index 824caf75..12ee7b0a 100644 --- a/backend_ldap.go +++ b/backend_ldap.go @@ -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)