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

neil_a_wilson
08.12.2007 3a54cca2784a2de3627b0558e381cf01db48773f
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
opends/src/server/org/opends/server/core/PasswordPolicyState.java 2 ●●● patch | view | raw | blame | history
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)
        {