From d89c47e7cb1b3c9181e25582539aac1dedb46099 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 07:31:25 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry
---
opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
index edff42c..8dfe8fb 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
@@ -298,7 +298,7 @@
// See if the entry explicitly states the password policy that it should
// use. If so, then only use it to perform the encoding.
- List<Attribute> attrList = entry.getAttribute(customPolicyAttribute);
+ List<Attribute> attrList = entry.getAllAttributes(customPolicyAttribute);
if (!attrList.isEmpty())
{
DN policyDN = null;
@@ -337,7 +337,7 @@
PasswordStorageScheme<?>[] schemes = schemesByPolicy.get(policyDN);
if (schemes != null)
{
- attrList = entry.getAttribute(policy.getPasswordAttribute());
+ attrList = entry.getAllAttributes(policy.getPasswordAttribute());
if (attrList.isEmpty())
{
return PluginResult.ImportLDIF.continueEntryProcessing();
@@ -418,7 +418,7 @@
// appropriate schemes.
for (AttributeType t : authPasswordTypes)
{
- for (Attribute a : entry.getAttribute(t))
+ for (Attribute a : entry.getAllAttributes(t))
{
AttributeBuilder builder = new AttributeBuilder(a.getAttributeDescription());
boolean gotError = false;
@@ -461,7 +461,7 @@
// appropriate schemes.
for (AttributeType t : userPasswordTypes)
{
- for (Attribute a : entry.getAttribute(t))
+ for (Attribute a : entry.getAllAttributes(t))
{
AttributeBuilder builder = new AttributeBuilder(a.getAttributeDescription());
boolean gotError = false;
--
Gitblit v1.10.0