]> source.dussan.org Git - gitea.git/commitdiff
implicated error for ldap dial
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 16 May 2014 02:31:39 +0000 (10:31 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Fri, 16 May 2014 02:31:39 +0000 (10:31 +0800)
modules/auth/ldap/ldap.go

index 200490afb5399acdfd3f6e1a60f460ee0f7b3cb6..e944a90a1e2d85dde87985950a856aab91157dd4 100644 (file)
@@ -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
 func (ls Ldapsource) SearchEntry(name, passwd string) (string, bool) {
        l, err := ldapDial(ls)
-
        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
                return "", false
        }