Skip to content
Snippets Groups Projects
Commit f6ada04d authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6084

parent a61d9086
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ OpenLDAP 2.4.17 Engineering
Fixed slapo-perl symbols (ITS#5658)
Fixed slapo-ppolicy to honor pwdLockout (ITS#6168)
Fixed slapo-ppolicy to return check modules error message (ITS#6082)
Fixed slapo-ppolicy with future lockout times (ITS#6084)
Fixed slapo-refint refint_repair handling (ITS#6056)
Added slapo-rwm rwm-drop-unrequested-attrs config option (ITS#6057)
Fixed slapo-rwm dn passing (ITS#6070)
......
......@@ -338,14 +338,18 @@ account_locked( Operation *op, Entry *e,
time_t then, now;
Modifications *m;
if (!pp->pwdLockoutDuration)
return 1;
if ((then = parse_time( vals[0].bv_val )) == (time_t)0)
return 1;
now = slap_get_time();
/* Still in the future? not yet in effect */
if (now < then)
return 0;
if (!pp->pwdLockoutDuration)
return 1;
if (now < then + pp->pwdLockoutDuration)
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment