Fixed Change Password Bug
This commit is contained in:
parent
7442f4b311
commit
026ffa1376
1 changed files with 2 additions and 1 deletions
3
gpas.go
3
gpas.go
|
@ -92,7 +92,8 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
log.Printf(fmt.Sprintf("passwordLost 83 : %v", err))
|
log.Printf(fmt.Sprintf("passwordLost 83 : %v", err))
|
||||||
log.Printf(fmt.Sprintf("passwordLost 84 : %v", user))
|
log.Printf(fmt.Sprintf("passwordLost 84 : %v", user))
|
||||||
// log.Printf(fmt.Sprintf("passwordLost 85 : %v", searchRes.Entries[0]))
|
// log.Printf(fmt.Sprintf("passwordLost 85 : %v", searchRes.Entries[0]))
|
||||||
return err
|
// For some reason I get here even if the entry exists already
|
||||||
|
// return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = passwd(user, config, ldapConn)
|
err = passwd(user, config, ldapConn)
|
||||||
|
|
Loading…
Reference in a new issue