we know what the user attr is so use it

This commit is contained in:
stryan 2020-09-22 14:00:28 -04:00
parent 6f9cde4639
commit 0250dd0066
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func loginLDAPAccount(uname string, pwd string) error {
0,
0,
false,
fmt.Sprintf("(&(objectClass=organizationalPerson)(uid=%s))", uname),
fmt.Sprintf("(&(objectClass=organizationalPerson)(%s=%s))", Conf.Ldap.UserAttr, uname),
[]string{"dn"},
nil,
))