From: Howard Chu Date: Thu, 3 Nov 2005 00:51:57 +0000 (+0000) Subject: ITS#4134 additional fix X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0ec0a21c2cf7e650f40c5331c6e50e09e9b678b;p=openldap ITS#4134 additional fix --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index dcc1ddef45..e543a48575 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1594,6 +1594,19 @@ do_modify: modtail = mods; } + if (attr_find(e->e_attrs, ad_pwdFailureTime )) { + mods = (Modifications *) ch_malloc( sizeof( Modifications ) ); + mods->sml_op = LDAP_MOD_DELETE; + mods->sml_flags = SLAP_MOD_INTERNAL; + mods->sml_type.bv_val = NULL; + mods->sml_desc = ad_pwdFailureTime; + mods->sml_values = NULL; + mods->sml_nvalues = NULL; + mods->sml_next = NULL; + modtail->sml_next = mods; + modtail = mods; + } + /* Delete the pwdReset attribute, since it's being reset */ if ((zapReset) && (attr_find(e->e_attrs, ad_pwdReset ))) { mods = (Modifications *) ch_malloc( sizeof( Modifications ) );