From: Howard Chu Date: Wed, 15 Jun 2005 21:21:12 +0000 (+0000) Subject: ITS#3779 fix pwdLockoutDuration handling X-Git-Tag: OPENLDAP_AC_BP~523 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6aa697000817131dd07689c65516e2dd7bc2c02;p=openldap ITS#3779 fix pwdLockoutDuration handling --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index af1dd5a153..f5bc8ce0b9 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -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;