]> git.sur5r.net Git - openldap/commitdiff
ITS#3946 reset lockout status at beginning of all Binds
authorHoward Chu <hyc@openldap.org>
Thu, 18 Aug 2005 07:05:56 +0000 (07:05 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Aug 2005 07:05:56 +0000 (07:05 +0000)
servers/slapd/overlays/ppolicy.c

index 503a9c63fa108dc643f8ae35c52b21cd67a33c19..6d0757c2dfc64d59af8b0b1ac99156f80553fe59 100644 (file)
@@ -944,6 +944,9 @@ ppolicy_bind( Operation *op, SlapReply *rs )
 {
        slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
 
+       /* Reset lockout status on all Bind requests */
+       pwcons[op->o_conn->c_conn_idx].restricted = 0;
+
        /* Root bypasses policy */
        if ( !be_isroot_dn( op->o_bd, &op->o_req_ndn )) {
                Entry *e;