mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime
opattr on replicated entries.
This commit is contained in:
parent
34280359b5
commit
89b03a1c7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user