OPENDJ-3270 Uninstalling server without bind password now returns usage if the password is needed
| | |
| | | final Set<DN> alternateBindDNs = new HashSet<>(); |
| | | try |
| | | { |
| | | DirectoryServer.getInstance().initializeConfiguration(); |
| | | |
| | | readSchemaIfNeeded(errors); |
| | | readConfig(connectionHandlers, backendDescriptors, alternateBindDNs, errors); |
| | | } |
| | | catch (final OpenDsException oe) |
| | |
| | | info.setTrustManager(userData.getTrustManager()); |
| | | info.setConnectionPolicy(ConnectionProtocolPolicy.USE_ADMIN); |
| | | info.setConnectTimeout(getConnectTimeout()); |
| | | if (userData.getAdminPwd() == null) { |
| | | throw new UserDataException(null, LocalizableMessage.raw("No administrator password provided")); |
| | | } |
| | | conn = new ConnectionWrapper( |
| | | info.getAdminConnectorHostPort(), connectionType, |
| | | getAdministratorDN(userData.getAdminUID()), userData.getAdminPwd(), |