From 66dc018f196aab1a275e3a63711b1235f55a3487 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Tue, 12 Jun 2012 10:06:27 +0000
Subject: [PATCH] Fix OpenDJ-519 - Exception raised when bind fails and debug logging is enabled Fix typo in message string builder and removed unused code.

---
 opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java b/opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java
index 5966b69..0354596 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java
@@ -697,7 +697,7 @@
       if (debugEnabled())
       {
         TRACER.debugInfo("Returning stored auth failure time list of %d " +
-            "elements for user %s" +
+            "elements for user %s",
             authFailureTimes.size(), userDNString);
       }
 
@@ -837,7 +837,6 @@
     {
       highestFailureTime = currentTime;
     }
-    failureTimes.add(highestFailureTime);
 
     AttributeType type =
          DirectoryServer.getAttributeType(OP_ATTR_PWPOLICY_FAILURE_TIME_LC);
@@ -847,16 +846,6 @@
                                   OP_ATTR_PWPOLICY_FAILURE_TIME);
     }
 
-    AttributeBuilder builder = new AttributeBuilder(type);
-    for (Long l : failureTimes)
-    {
-      builder.add(AttributeValues.create(type,
-          GeneralizedTimeSyntax.format(l)));
-    }
-
-    ArrayList<Attribute> attrList = new ArrayList<Attribute>(1);
-    attrList.add(builder.toAttribute());
-
     Attribute addAttr = Attributes.create(type, AttributeValues.create(type,
         GeneralizedTimeSyntax.format(highestFailureTime)));
 

--
Gitblit v1.10.0