diff options
author | Unknwon <u@gogs.io> | 2015-09-16 12:15:14 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-16 12:15:14 -0400 |
commit | 6a1907d994c3beb7e604874d2cce3171b32b0baf (patch) | |
tree | 464286714768b848a7f8510b9d1c20e41cccb859 /modules/auth/ldap/ldap.go | |
parent | e303d74ab65dfeae17b815efd424bd0618a7d630 (diff) | |
download | gitea-6a1907d994c3beb7e604874d2cce3171b32b0baf.tar.gz gitea-6a1907d994c3beb7e604874d2cce3171b32b0baf.zip |
revert simple LDAP userDN and update example
Diffstat (limited to 'modules/auth/ldap/ldap.go')
-rw-r--r-- | modules/auth/ldap/ldap.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/ldap/ldap.go b/modules/auth/ldap/ldap.go index 1f87690526..382b5b8699 100644 --- a/modules/auth/ldap/ldap.go +++ b/modules/auth/ldap/ldap.go @@ -84,8 +84,8 @@ func (ls *Source) FindUserDN(name string) (string, bool) { func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, string, string, bool, bool) { var userDN string if directBind { - log.Trace("LDAP will bind directly via UserDN: %s", ls.UserDN) - userDN = ls.UserDN + log.Trace("LDAP will bind directly via UserDN template: %s", ls.UserDN) + userDN = fmt.Sprintf(ls.UserDN, name) } else { log.Trace("LDAP will use BindDN.") |