From 2d838c933b9a3ce360855f11c14a5fb08712868d Mon Sep 17 00:00:00 2001
From: david_page <david_page@localhost>
Date: Mon, 12 Mar 2007 13:38:34 +0000
Subject: [PATCH] The following update to core.PasswordPolicyState.java, along with some small changes to consumers of its API are the result of a review in preparation for password policy state management extended operation (issue 579).

---
 opends/src/server/org/opends/server/core/ModifyOperation.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/ModifyOperation.java b/opends/src/server/org/opends/server/core/ModifyOperation.java
index 8623ba4..ea571a1 100644
--- a/opends/src/server/org/opends/server/core/ModifyOperation.java
+++ b/opends/src/server/org/opends/server/core/ModifyOperation.java
@@ -1286,7 +1286,6 @@
             // Update the password policy state attributes in the user's entry.
             // If the modification fails, then these changes won't be applied.
             pwPolicyState.setPasswordChangedTime();
-            pwPolicyState.clearAuthFailureTimes();
             pwPolicyState.clearFailureLockout();
             pwPolicyState.clearGraceLoginTimes();
             pwPolicyState.clearWarnedTime();
@@ -1297,7 +1296,7 @@
               pwPolicyState.setMustChangePassword(! selfChange);
             }
 
-            if (pwPolicyState.getRequiredChangeTime() > 0)
+            if (pwPolicyState.getPolicy().getRequireChangeByTime() > 0)
             {
               pwPolicyState.setRequiredChangeTime();
             }

--
Gitblit v1.10.0