From 96f3c89c2f0a3a8cf902d7185aec2f2f3fc0216d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 22:59:03 +0000
Subject: [PATCH] Update the password modify extended operation so that it properly sets password policy state attributes that were not previously updated.  This primarily includes updating the last login time if that feature is enabled and the user provides the correct current password, or updating the auth failure times if that feature is enabled nad the user provides an incorrect current password.

---
 opends/src/server/org/opends/server/core/PasswordPolicyState.java |    5 ++++-
 1 files changed, 4 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 d3a43fe..6c916bf 100644
--- a/opends/src/server/org/opends/server/core/PasswordPolicyState.java
+++ b/opends/src/server/org/opends/server/core/PasswordPolicyState.java
@@ -1342,7 +1342,10 @@
    */
   public void updateAuthFailureTimes()
   {
-    assert passwordPolicy.getLockoutFailureCount() > 0;
+    if (passwordPolicy.getLockoutFailureCount() <= 0)
+    {
+      return;
+    }
 
     if (debug)
     {

--
Gitblit v1.10.0