mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
08.12.2007 36bb028510be658d1c62023324e072eea266f1b3
Update the password policy so that it uses the correct calculation when
determining the length of time the account will remain locked due to
authentication failures (it was supposed to be reported in seconds, but the
value returned was in milliseconds). This only impacted components that
reported the time until the account was unlocked and not any calculation
determining whether an account should currently be locked.

OpenDS Issue Number: 1781
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java
@@ -1465,7 +1465,7 @@
           (1000L * passwordPolicy.getLockoutDuration());
      if (unlockTime > currentTime)
      {
        secondsUntilUnlock = (int) (unlockTime - currentTime);
        secondsUntilUnlock = (int) ((unlockTime - currentTime) / 1000);
        if (debug)
        {