From ac3709529faa768ede65c1d445785ceafea39d0b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 02 Nov 2007 15:57:43 +0000
Subject: [PATCH] Update modify processing to fix a problem in which the server would refuse to allow an entry to be modified if it was associated with an invalid or nonexistent password policy. This even prevented administrators from re-associating the entry with a valid password policy. With this change, the server will fall back to the default password policy for modify operations if the user-specific policy cannot be retrieved.
---
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java
index 58a7303..629c83d 100644
--- a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java
+++ b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java
@@ -96,6 +96,7 @@
import org.opends.server.types.operation.PostResponseModifyOperation;
import org.opends.server.types.operation.PreOperationModifyOperation;
import org.opends.server.types.operation.PostSynchronizationModifyOperation;
+import org.opends.server.util.TimeThread;
import static org.opends.messages.CoreMessages.*;
import static org.opends.server.config.ConfigConstants.*;
@@ -416,7 +417,9 @@
selfChange = entryDN.equals(getAuthorizationDN());
// FIXME -- Need a way to enable debug mode.
- pwPolicyState = new PasswordPolicyState(currentEntry, false, false);
+ pwPolicyState = new PasswordPolicyState(currentEntry, false,
+ TimeThread.getTime(), true,
+ false);
}
catch (DirectoryException de)
{
--
Gitblit v1.10.0