aboutsummaryrefslogtreecommitdiff
path: root/pkg/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-13 22:26:56 +0800
committerUnknwon <u@gogs.io>2018-06-13 22:26:56 +0800
commit7856b1202d6bfd8bded396b87692ea7113fedbed (patch)
treef1c7aeb74750a227173ab5a997c4fb124bd85123 /pkg/auth
parente5ddbcab7d9c95f6b3043cac8bec9b8c7851ad04 (diff)
*: fix wrong format type
Diffstat (limited to 'pkg/auth')
-rw-r--r--pkg/auth/ldap/ldap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/auth/ldap/ldap.go b/pkg/auth/ldap/ldap.go
index 5b976460..5c9342e9 100644
--- a/pkg/auth/ldap/ldap.go
+++ b/pkg/auth/ldap/ldap.go
@@ -178,7 +178,7 @@ func bindUser(l *ldap.Conn, userDN, passwd string) error {
func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, string, string, string, bool, bool) {
// See https://tools.ietf.org/search/rfc4513#section-5.1.2
if len(passwd) == 0 {
- log.Trace("authentication failed for '%s' with empty password")
+ log.Trace("authentication failed for '%s' with empty password", name)
return "", "", "", "", false, false
}
l, err := dial(ls)