we know what the user attr is so use it
This commit is contained in:
parent
6f9cde4639
commit
0250dd0066
2
ldap.go
2
ldap.go
@ -67,7 +67,7 @@ func loginLDAPAccount(uname string, pwd string) error {
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
false,
|
false,
|
||||||
fmt.Sprintf("(&(objectClass=organizationalPerson)(uid=%s))", uname),
|
fmt.Sprintf("(&(objectClass=organizationalPerson)(%s=%s))", Conf.Ldap.UserAttr, uname),
|
||||||
[]string{"dn"},
|
[]string{"dn"},
|
||||||
nil,
|
nil,
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user