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

Ludovic Poitou
12.06.2012 66dc018f196aab1a275e3a63711b1235f55a3487
Fix OpenDJ-519 - Exception raised when bind fails and debug logging is enabled
Fix typo in message string builder and removed unused code.
1 files modified
13 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/PasswordPolicyState.java 13 ●●●●● patch | view | raw | blame | history
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)));