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/tests/unit-tests-testng/src/server/org/opends/server/api/PasswordValidatorTestCase.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/api/PasswordValidatorTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/api/PasswordValidatorTestCase.java
index 140fdff..e29f383 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/api/PasswordValidatorTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/api/PasswordValidatorTestCase.java
@@ -355,8 +355,8 @@
          "sn: User",
          "cn: Test User",
          "userPassword: password",
-         "pwdPolicySubentry: cn=Clear UserPassword Policy,cn=Password " +
-              "Policies,cn=config");
+         "ds-pwp-password-policy-dn: cn=Clear UserPassword Policy," +
+              "cn=Password Policies,cn=config");
 
 
     InternalClientConnection conn =
@@ -416,8 +416,8 @@
          "sn: User",
          "cn: Test User",
          "userPassword: password",
-         "pwdPolicySubentry: cn=Clear UserPassword Policy,cn=Password " +
-              "Policies,cn=config");
+         "ds-pwp-password-policy-dn: cn=Clear UserPassword Policy," +
+              "cn=Password Policies,cn=config");
 
 
     InternalClientConnection conn =
@@ -721,8 +721,8 @@
          "sn: User",
          "cn: Test User",
          "userPassword: password",
-         "pwdPolicySubentry: cn=Clear UserPassword Policy,cn=Password " +
-              "Policies,cn=config");
+         "ds-pwp-password-policy-dn: cn=Clear UserPassword Policy," +
+              "cn=Password Policies,cn=config");
 
 
     InternalClientConnection conn =
@@ -804,8 +804,8 @@
          "sn: User",
          "cn: Test User",
          "userPassword: password",
-         "pwdPolicySubentry: cn=Clear UserPassword Policy,cn=Password " +
-              "Policies,cn=config");
+         "ds-pwp-password-policy-dn: cn=Clear UserPassword Policy," +
+              "cn=Password Policies,cn=config");
 
 
     InternalClientConnection conn =

--
Gitblit v1.10.0