]> git.sur5r.net Git - openldap/commitdiff
ITS#6168 actually use pwdLockout setting
authorHoward Chu <hyc@openldap.org>
Tue, 30 Jun 2009 11:04:16 +0000 (11:04 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 30 Jun 2009 11:04:16 +0000 (11:04 +0000)
servers/slapd/overlays/ppolicy.c

index 639fc5beeb432f8dceaa73f4104e7bc9c5b62257..62324ca2f9d9958fbad9ff943decdd7154cc7c93 100644 (file)
@@ -324,6 +324,9 @@ account_locked( Operation *op, Entry *e,
 
        assert(mod != NULL);
 
+       if ( !pp->pwdLockout )
+               return 0;
+
        if ( (la = attr_find( e->e_attrs, ad_pwdAccountLockedTime )) != NULL ) {
                BerVarray vals = la->a_nvals;