mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#4148 fix replica mods
This commit is contained in:
parent
7c8d854e19
commit
19f6e2d943
1 changed files with 3 additions and 2 deletions
|
|
@ -1186,8 +1186,7 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
|||
a_lock = attr_find( e->e_attrs, ad_pwdAccountLockedTime );
|
||||
a_fail = attr_find( e->e_attrs, ad_pwdFailureTime );
|
||||
|
||||
for( prev = &op->oq_modify.rs_modlist, ml = *prev; ml;
|
||||
prev = &ml->sml_next, ml = *prev ) {
|
||||
for( prev = &op->oq_modify.rs_modlist, ml = *prev; ml; ml = *prev ) {
|
||||
|
||||
if ( ml->sml_desc == slap_schema.si_ad_userPassword )
|
||||
got_pw = 1;
|
||||
|
|
@ -1217,8 +1216,10 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
|||
*prev = ml->sml_next;
|
||||
ml->sml_next = NULL;
|
||||
slap_mods_free( ml, 1 );
|
||||
continue;
|
||||
}
|
||||
}
|
||||
prev = &ml->sml_next;
|
||||
}
|
||||
|
||||
/* If we're resetting the password, make sure grace, accountlock,
|
||||
|
|
|
|||
Loading…
Reference in a new issue