G Pas
This commit is contained in:
parent
8322cd5572
commit
18ce635446
1 changed files with 1 additions and 1 deletions
2
gpas.go
2
gpas.go
|
@ -99,7 +99,7 @@ func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string,
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
searchReq := ldap.NewSearchRequest(user.DN, ldap.ScopeBaseObject,
|
searchReq := ldap.NewSearchRequest(user.DN, ldap.ScopeBaseObject,
|
||||||
ldap.NeverDerefAliases, 0, 0, false, "", []string{"seeAlso"}, nil)
|
ldap.NeverDerefAliases, 0, 0, false, "(uid="+user.UID+")", []string{"seeAlso"}, nil)
|
||||||
var searchRes *ldap.SearchResult
|
var searchRes *ldap.SearchResult
|
||||||
searchRes, err = ldapConn.Search(searchReq)
|
searchRes, err = ldapConn.Search(searchReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue