mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Chris Ridd
08.27.2012 3739b37652ac3c5d588fd41b84cc73d4868ea980
Fix OPENDJ-561 Add operation doesn't get password policy from ds-pwp-password-policy-dn;collective
2 files modified
10 ■■■■ changed files
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendAddOperation.java 8 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/UserDefinedVirtualAttributeProviderTestCase.java 2 ●●● patch | view | raw | blame | history
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
opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/UserDefinedVirtualAttributeProviderTestCase.java
@@ -744,7 +744,7 @@
      "givenName: Test",
      "sn: User",
      "cn: Test User",
      "userPassword: test");
      "userPassword: testtest");
    try
    {