| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.config.server.ConfigChangeResult; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.meta.PluginCfgDefn; |
| | | import org.opends.server.admin.std.server.PasswordPolicyImportPluginCfg; |
| | |
| | | import org.opends.server.api.plugin.DirectoryServerPlugin; |
| | | import org.opends.server.api.plugin.PluginResult; |
| | | import org.opends.server.api.plugin.PluginType; |
| | | import org.forgerock.opendj.config.server.ConfigChangeResult; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.PasswordPolicy; |
| | | import org.opends.server.core.SubentryPasswordPolicy; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.server.schema.AuthPasswordSyntax; |
| | | import org.opends.server.schema.UserPasswordSyntax; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | |
| | | /** |
| | | * This class implements a Directory Server plugin that performs various |
| | |
| | | // 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); |
| | | if (attrList != null) |
| | | if (!attrList.isEmpty()) |
| | | { |
| | | DN policyDN = null; |
| | | PasswordPolicy policy = null; |
| | |
| | | if (schemes != null) |
| | | { |
| | | attrList = entry.getAttribute(policy.getPasswordAttribute()); |
| | | if (attrList == null) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | return PluginResult.ImportLDIF.continueEntryProcessing(); |
| | | } |
| | |
| | | for (AttributeType t : authPasswordTypes) |
| | | { |
| | | attrList = entry.getAttribute(t); |
| | | if (attrList == null || attrList.isEmpty()) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | continue; |
| | | } |
| | |
| | | for (AttributeType t : userPasswordTypes) |
| | | { |
| | | attrList = entry.getAttribute(t); |
| | | if (attrList == null || attrList.isEmpty()) |
| | | if (attrList.isEmpty()) |
| | | { |
| | | continue; |
| | | } |