mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
Use be_shadow_update, not be_isupdate
This commit is contained in:
parent
62107d5dd7
commit
aa913f1bef
@ -1143,7 +1143,7 @@ ppolicy_add(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* If password aging is in effect, set the pwdChangedTime */
|
/* If password aging is in effect, set the pwdChangedTime */
|
||||||
if (( pp.pwdMaxAge || pp.pwdMinAge ) && !be_isupdate( op )) {
|
if (( pp.pwdMaxAge || pp.pwdMinAge ) && !be_shadow_update( op )) {
|
||||||
struct berval timestamp;
|
struct berval timestamp;
|
||||||
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
|
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
|
||||||
struct tm *ltm;
|
struct tm *ltm;
|
||||||
@ -1173,7 +1173,6 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
|||||||
PassPolicy pp;
|
PassPolicy pp;
|
||||||
Modifications *mods = NULL, *modtail, *ml, *delmod, *addmod;
|
Modifications *mods = NULL, *modtail, *ml, *delmod, *addmod;
|
||||||
Attribute *pa, *ha, *ra, at;
|
Attribute *pa, *ha, *ra, at;
|
||||||
int repl_user = be_isupdate( op );
|
|
||||||
const char *txt;
|
const char *txt;
|
||||||
pw_hist *tl = NULL, *p;
|
pw_hist *tl = NULL, *p;
|
||||||
int zapReset, send_ctrl = 0;
|
int zapReset, send_ctrl = 0;
|
||||||
@ -1457,7 +1456,7 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_modify:
|
do_modify:
|
||||||
if ((pwmod) && (!repl_user)) {
|
if ((pwmod) && (!be_shadow_update( op ))) {
|
||||||
struct berval timestamp;
|
struct berval timestamp;
|
||||||
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
|
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
|
||||||
struct tm *ltm;
|
struct tm *ltm;
|
||||||
|
Loading…
Reference in New Issue
Block a user