mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
ITS#4970 ignore pwdMinAge if pwdReset is TRUE
This commit is contained in:
parent
431f6fd810
commit
8cafa0b117
1 changed files with 4 additions and 1 deletions
|
|
@ -1694,7 +1694,10 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
|||
goto return_results;
|
||||
}
|
||||
|
||||
if (pp.pwdMinAge > 0) {
|
||||
/* Check age, but only if pwdReset is not TRUE */
|
||||
pa = attr_find( e->e_attrs, ad_pwdReset );
|
||||
if ((!pa || !bvmatch( &pa->a_nvals[0], &slap_true_bv )) &&
|
||||
pp.pwdMinAge > 0) {
|
||||
time_t pwtime = (time_t)-1, now;
|
||||
int age;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue