]> git.sur5r.net Git - openldap/commitdiff
ITS#3779 fix pwdLockoutDuration handling
authorHoward Chu <hyc@openldap.org>
Wed, 15 Jun 2005 21:21:12 +0000 (21:21 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 15 Jun 2005 21:21:12 +0000 (21:21 +0000)
servers/slapd/overlays/ppolicy.c

index af1dd5a15324521c8de49502969cc230c7a4a225..f5bc8ce0b9bad254a2ab330f22d1dc82a949c7db 100644 (file)
@@ -228,6 +228,9 @@ account_locked( Operation *op, Entry *e,
                        struct berval bv;
                        Modifications *m;
 
+                       if (!pp->pwdLockoutDuration)
+                               return 1;
+
                        if ((then = parse_time( vals[0].bv_val )) == (time_t)0)
                                return 1;