]> git.sur5r.net Git - openldap/commitdiff
ITS#4134 additional fix
authorHoward Chu <hyc@openldap.org>
Thu, 3 Nov 2005 00:51:57 +0000 (00:51 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Nov 2005 00:51:57 +0000 (00:51 +0000)
servers/slapd/overlays/ppolicy.c

index dcc1ddef459aace639f6464aaa2d299c574634be..e543a4857586ab287143db8353d74ab39296a804 100644 (file)
@@ -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 ) );