From e0ec0a21c2cf7e650f40c5331c6e50e09e9b678b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 3 Nov 2005 00:51:57 +0000 Subject: [PATCH] ITS#4134 additional fix --- servers/slapd/overlays/ppolicy.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 ) ); -- 2.39.5