Factoring the model user and correcting password
This commit is contained in:
parent
57bf01d908
commit
b91d2d4f9c
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ func replaceIfContent(modifReq *ldap.ModifyRequest, key string, value string, pr
|
|||
log.Printf("replaceIfContent : %v", previousValue)
|
||||
if value != "" {
|
||||
modifReq.Replace(key, []string{value})
|
||||
} else {
|
||||
} else if previousValue != "" {
|
||||
modifReq.Delete(key, []string{previousValue})
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue