G Pas
This commit is contained in:
parent
10c0d79eb8
commit
8322cd5572
1 changed files with 7 additions and 0 deletions
7
gpas.go
7
gpas.go
|
@ -102,6 +102,13 @@ func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string,
|
|||
ldap.NeverDerefAliases, 0, 0, false, "", []string{"seeAlso"}, nil)
|
||||
var searchRes *ldap.SearchResult
|
||||
searchRes, err = ldapConn.Search(searchReq)
|
||||
if err != nil {
|
||||
log.Printf("passwordFound %v", err)
|
||||
log.Printf("passwordFound %v", searchReq)
|
||||
log.Printf("passwordFound %v", ldapConn)
|
||||
log.Printf("passwordFound %v", searchRes)
|
||||
return "", err
|
||||
}
|
||||
if len(searchRes.Entries) == 0 {
|
||||
log.Printf("passwordFound %v", err)
|
||||
log.Printf("passwordFound %v", searchReq)
|
||||
|
|
Loading…
Reference in a new issue