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

Jean-Noël Rouvignac
06.25.2016 d89c47e7cb1b3c9181e25582539aac1dedb46099
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;