From a18f7e5bb96cff470bff597641ce2e85f5d6123d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 30 Oct 2006 23:19:18 +0000
Subject: [PATCH] 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/src/server/org/opends/server/core/AddOperation.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/AddOperation.java b/opends/src/server/org/opends/server/core/AddOperation.java
index a3b2cad..f07fdc6 100644
--- a/opends/src/server/org/opends/server/core/AddOperation.java
+++ b/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,
--
Gitblit v1.10.0