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

neil_a_wilson
31.19.2006 a18f7e5bb96cff470bff597641ce2e85f5d6123d
Fix a problem in the add operation processing that caused the "force change on
add" function to not work properly. The server would attempt to store a
timestamp in the pwdReset attribute (which has a Boolean syntax) rather than
the more appopriate value of "TRUE".

OpenDS Issue Number: 888
1 files modified
3 ■■■■ changed files
opends/src/server/org/opends/server/core/AddOperation.java 3 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/AddOperation.java
@@ -54,6 +54,7 @@
import org.opends.server.controls.ProxiedAuthV1Control;
import org.opends.server.controls.ProxiedAuthV2Control;
import org.opends.server.schema.AuthPasswordSyntax;
import org.opends.server.schema.BooleanSyntax;
import org.opends.server.schema.UserPasswordSyntax;
import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.protocols.ldap.LDAPAttribute;
@@ -2397,7 +2398,7 @@
      LinkedHashSet<AttributeValue> resetValues = new
           LinkedHashSet<AttributeValue>(1);
      resetValues.add(new AttributeValue(resetType, timeString));
      resetValues.add(BooleanSyntax.createBooleanValue(true));
      ArrayList<Attribute> resetList = new ArrayList<Attribute>(1);
      resetList.add(new Attribute(resetType, OP_ATTR_PWPOLICY_RESET_REQUIRED,