mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 10:17:37 +02:00
revert simple LDAP userDN and update example
This commit is contained in:
1 parent
e303d74ab6
commit
6a1907d994
5 files changed
+6
-6
No files matched your search
@@ -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.")
|
||||
|
||||
|
||||
Reference in new issue
Block a user