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

ludovicp
15.29.2009 5a19ddcc073970a6d1bfd3281994117092171a6d
Fix for defect 4286: Account Usability Control incorrectly reports account unusable when password expires in the futur.
Fixes the encoding of the control response when password is valid and due to expire later
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/controls/AccountUsableResponseControl.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/controls/AccountUsableResponseControl.java
@@ -401,7 +401,7 @@
  public void writeValue(ASN1Writer writer) throws IOException {
    writer.writeStartSequence(UNIVERSAL_OCTET_STRING_TYPE);
    if(secondsBeforeExpiration < 0)
    if(isUsable)
    {
      writer.writeInteger(TYPE_SECONDS_BEFORE_EXPIRATION,
          secondsBeforeExpiration);