From 3739b37652ac3c5d588fd41b84cc73d4868ea980 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Wed, 08 Aug 2012 14:27:00 +0000
Subject: [PATCH] Fix OPENDJ-561 Add operation doesn't get password policy from ds-pwp-password-policy-dn;collective
---
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java
index 0de8635..34441a4 100644
--- a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java
+++ b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java
@@ -1019,10 +1019,10 @@
public final void handlePasswordPolicy()
throws DirectoryException
{
- // FIXME -- We need to check to see if the password policy subentry
- // might be specified virtually rather than as a real
- // attribute.
- AuthenticationPolicy policy = AuthenticationPolicy.forUser(entry, false);
+ // Construct any virtual/collective attributes which might
+ // contain a value for the OP_ATTR_PWPOLICY_POLICY_DN attribute.
+ Entry copy = entry.duplicate(true);
+ AuthenticationPolicy policy = AuthenticationPolicy.forUser(copy, false);
if (!policy.isPasswordPolicy())
{
// The entry doesn't have a locally managed password, so no action is
--
Gitblit v1.10.0