Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime

opattr on replicated entries.
This commit is contained in:
Howard Chu 2004-09-21 00:14:28 +00:00
parent 34280359b5
commit 89b03a1c7e

View File

@ -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;