Skip to content

Commit

Permalink
Lockout duration multiplication fix (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximthomas authored Mar 6, 2024
1 parent 2d73a7f commit 6b0d340
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ public int invalidPasswd(String userDN, String userName,
if (((lastFailTime + failureLockoutTime) > now) &&
(fail_count >= failureLockoutCount)
) {
if(lockedAt > 0 && failureLockoutMultiplier > 0) { //if was previously locked, multiply duration
acInfo.setActualLockoutDuration(acInfo.getActualLockoutDuration() * failureLockoutMultiplier);
}
lockedAt = now;
}
if (debug.messageEnabled()) {
Expand Down

0 comments on commit 6b0d340

Please sign in to comment.