| | |
| | | import static org.opends.messages.PluginMessages.*; |
| | | import static org.opends.server.config.ConfigConstants.*; |
| | | import static org.opends.server.extensions.ExtensionsConstants.*; |
| | | import static org.opends.server.schema.SchemaConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import java.util.HashMap; |
| | |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDIFImportConfig; |
| | | import org.opends.server.types.SubEntry; |
| | | import org.opends.server.util.SchemaUtils; |
| | | import org.opends.server.util.SchemaUtils.PasswordType; |
| | | |
| | | /** |
| | | * This class implements a Directory Server plugin that performs various |
| | |
| | | HashSet<AttributeType> userPWTypes = new HashSet<>(); |
| | | for (AttributeType t : DirectoryServer.getAttributeTypes()) |
| | | { |
| | | if (SYNTAX_AUTH_PASSWORD_OID.equals(t.getSyntax().getOID())) |
| | | final PasswordType passwordType = SchemaUtils.checkPasswordType(t); |
| | | if (passwordType.equals(PasswordType.AUTH_PASSWORD)) |
| | | { |
| | | authPWTypes.add(t); |
| | | } |
| | | else if (SYNTAX_USER_PASSWORD_OID.equals(t.getSyntax().getOID())) |
| | | else if (passwordType.equals(PasswordType.USER_PASSWORD)) |
| | | { |
| | | userPWTypes.add(t); |
| | | } |