Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 09:45:12 +02:00
parent 0e4525716e
commit 4186942162

View file

@ -144,6 +144,9 @@ func modify(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
replaceIfContent(modify_request, "description", user.Description, previousUser.Description)
err = ldapConn.Modify(modify_request)
if err != nil {
log.Printf(fmt.Sprintf("71: %v", err))
log.Printf(fmt.Sprintf("72: %v", modify_request))
log.Printf(fmt.Sprintf("73: %v", user))
return err
}
return nil