From 3a54cca2784a2de3627b0558e381cf01db48773f Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 08 Jun 2007 20:12:10 +0000
Subject: [PATCH] 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/src/server/org/opends/server/core/PasswordPolicyState.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/PasswordPolicyState.java b/opends/src/server/org/opends/server/core/PasswordPolicyState.java
index 8e444ae..e37f904 100644
--- a/opends/src/server/org/opends/server/core/PasswordPolicyState.java
+++ b/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)
         {

--
Gitblit v1.10.0