From: Howard Chu Date: Tue, 21 Sep 2004 00:14:28 +0000 (+0000) Subject: Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~514 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89b03a1c7ea28a9183c0d212bfe69450f4fe4182;p=openldap Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime opattr on replicated entries. --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index c0741354f1..e46cd1dcad 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1223,7 +1223,7 @@ ppolicy_add( } } /* If password aging is in effect, set the pwdChangedTime */ - if ( pp.pwdMaxAge || pp.pwdMinAge ) { + if (( pp.pwdMaxAge || pp.pwdMinAge ) && !be_isupdate( op )) { struct berval timestamp; char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ]; struct tm *ltm;