G Pas
This commit is contained in:
parent
36a4c4fc8c
commit
dca6b2190b
1 changed files with 3 additions and 0 deletions
3
gpas.go
3
gpas.go
|
@ -38,6 +38,9 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
searchRes, err := ldapConn.Search(searchReq)
|
searchRes, err := ldapConn.Search(searchReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("passwordLost : %v %v", err, ldapConn))
|
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 {
|
if len(searchRes.Entries) == 0 {
|
||||||
return errors.New("Il n'y a pas d'utilisateur qui correspond")
|
return errors.New("Il n'y a pas d'utilisateur qui correspond")
|
||||||
|
|
Loading…
Reference in a new issue