From 9d690194a88200c47b3a1d7ed64efe5890c2943b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 15 Nov 2006 16:25:47 +0000
Subject: [PATCH] Update the password policy implementation to use ds-pwp-password-policy-dn instead of pwdPolicySubentry for indicating which password policy should be applied for a given user.  The new attribute is not marked NO-USER-MODIFICATION so that it can be directly altered by administrators in addition to having a value populated by a virtual attribute.  The pwdPolicySubentry attribute is defined in the IETF draft as NO-USER-MODIFICATION and is only intended to be virtually defined, making it more difficult to configure a special policy for an individual user.

---
 opends/src/server/org/opends/server/core/AddOperation.java |    2 +-
 1 files changed, 1 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 960f90b..fdc2f56 100644
--- a/opends/src/server/org/opends/server/core/AddOperation.java
+++ b/opends/src/server/org/opends/server/core/AddOperation.java
@@ -1408,7 +1408,7 @@
           //          attribute.
           PasswordPolicy pwPolicy = null;
           List<Attribute> pwAttrList =
-               entry.getAttribute(OP_ATTR_PWPOLICY_SUBENTRY_LC);
+               entry.getAttribute(OP_ATTR_PWPOLICY_POLICY_DN);
           if ((pwAttrList != null) && (! pwAttrList.isEmpty()))
           {
             Attribute a = pwAttrList.get(0);

--
Gitblit v1.10.0