| | |
| | | |
| | | // 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; |
| | |
| | | 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(); |
| | |
| | | // 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; |
| | |
| | | // 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; |