Factoring the model user and correcting password
This commit is contained in:
parent
0ffa7a155a
commit
7f6b2e211c
1 changed files with 0 additions and 4 deletions
|
@ -165,10 +165,6 @@ func bind(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
|||
}
|
||||
|
||||
func replaceIfContent(modifReq *ldap.ModifyRequest, key string, value string, previousValue string) error {
|
||||
log.Printf("replaceIfContent : %v", modifReq)
|
||||
log.Printf("replaceIfContent : %v", key)
|
||||
log.Printf("replaceIfContent : %v", value)
|
||||
log.Printf("replaceIfContent : %v", previousValue)
|
||||
if value != "" {
|
||||
modifReq.Replace(key, []string{value})
|
||||
} else if previousValue != "" {
|
||||
|
|
Loading…
Reference in a new issue