summaryrefslogtreecommitdiffstats
path: root/modules/auth/ldap
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-16 10:31:39 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-16 10:31:39 +0800
commitf6c94c29d5facfcd31966510336eb14b79819f50 (patch)
treec4cf8e17757beab192c745f888eb13112730c90d /modules/auth/ldap
parentf4486f3eec1856559f52291c283fe076352fccfe (diff)
downloadgitea-f6c94c29d5facfcd31966510336eb14b79819f50.tar.gz
gitea-f6c94c29d5facfcd31966510336eb14b79819f50.zip
implicated error for ldap dial
Diffstat (limited to 'modules/auth/ldap')
-rw-r--r--modules/auth/ldap/ldap.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/auth/ldap/ldap.go b/modules/auth/ldap/ldap.go
index 200490afb5..e944a90a1e 100644
--- a/modules/auth/ldap/ldap.go
+++ b/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
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
}