Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 10:11:51 +02:00
parent 0ffa7a155a
commit 7f6b2e211c

View file

@ -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 != "" {