This commit is contained in:
Chris Mann 2023-07-23 08:46:14 +02:00
parent 36a4c4fc8c
commit dca6b2190b

View file

@ -38,6 +38,9 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
searchRes, err := ldapConn.Search(searchReq)
if err != nil {
log.Printf(fmt.Sprintf("passwordLost : %v %v", err, ldapConn))
log.Printf(fmt.Sprintf("passwordLost : %v", searchReq))
log.Printf(fmt.Sprintf("passwordLost : %v", user))
return errors.New("LDAP chose")
}
if len(searchRes.Entries) == 0 {
return errors.New("Il n'y a pas d'utilisateur qui correspond")