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

ludovicp
15.29.2009 ff4cfff0867280d55b91955e3afe7067845024f0
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
opendj-sdk/opends/src/server/org/opends/server/controls/AccountUsableResponseControl.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/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);