]> git.sur5r.net Git - openldap/commitdiff
password always replaces old passwords
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 22:21:21 +0000 (22:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 22:21:21 +0000 (22:21 +0000)
servers/slapd/passwd.c

index 2faa368c3c04de7f0344f97ffd03a4b7dc658c31..a70fcc2102dda0c1205cab669c3b3886a65af4e4 100644 (file)
@@ -180,7 +180,7 @@ int passwd_extop(
        ml->sml_values[i].bv_val = NULL;
        ml->sml_nvalues = NULL;
        ml->sml_desc = slap_schema.si_ad_userPassword;
-       ml->sml_op = qpw->rs_old.bv_val ? LDAP_MOD_ADD : LDAP_MOD_REPLACE;
+       ml->sml_op = LDAP_MOD_REPLACE;
        ml->sml_next = qpw->rs_mods;
        qpw->rs_mods = ml;