Browse Source

implicated error for ldap dial

pull/201/head
Lunny Xiao 11 years ago
parent
commit
f6c94c29d5
  1. 3
      modules/auth/ldap/ldap.go

3
modules/auth/ldap/ldap.go

@ -54,9 +54,8 @@ func LoginUser(name, passwd string) (a string, r bool) {
// searchEntry : search an LDAP source if an entry (name, passwd) is valide and in the specific filter // searchEntry : search an LDAP source if an entry (name, passwd) is valide and in the specific filter
func (ls Ldapsource) SearchEntry(name, passwd string) (string, bool) { func (ls Ldapsource) SearchEntry(name, passwd string) (string, bool) {
l, err := ldapDial(ls) l, err := ldapDial(ls)
if err != nil { if err != nil {
log.Debug("LDAP Connect error, disabled source %s", ls.Host) log.Error("LDAP Connect error, %s:%v", ls.Host, err)
ls.Enabled = false ls.Enabled = false
return "", false return "", false
} }

Loading…
Cancel
Save