This commit is contained in:
Chris Mann 2023-07-23 13:44:28 +02:00
parent 10c0d79eb8
commit 8322cd5572

View file

@ -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)