Undo the changes for issue 4326 (Allow setup of a Server without Data suffix) since some tests are broken with the new behavior. The code has been left in a way that simply changing the default value of the base DN option to null, the command-line setup will allow to configure the server with no base DN.
| | |
| | | INFO_DESCRIPTION_REPLICATION_BASEDNS=Base DN of \ |
| | | the data to be replicated, initialized or for which we want to disable \ |
| | | replication. Multiple base DN's can be provided by using this option multiple \ |
| | | times. If this option is not provided no base DN will be created |
| | | times |
| | | INFO_DESCRIPTION_REPLICATION_ADMIN_UID=User ID of the \ |
| | | Global Administrator to use to bind to the server. For the '%s' subcommand \ |
| | | if no Global Administrator was defined previously for none of the server the \ |
| | |
| | | |
| | | // Check the validity of the base DNs |
| | | LinkedList<String> baseDNs = argParser.baseDNArg.getValues(); |
| | | if (baseDNs.isEmpty() && argParser.baseDNArg.getDefaultValue() != null) |
| | | { |
| | | baseDNs.add(argParser.baseDNArg.getDefaultValue()); |
| | | } |
| | | for (String baseDN : baseDNs) |
| | | { |
| | | try |
| | |
| | | throws UserDataException |
| | | { |
| | | boolean prompt = true; |
| | | if (!argParser.baseDNArg.isPresent()) |
| | | if (!argParser.baseDNArg.isPresent() && |
| | | argParser.baseDNArg.getDefaultValue() == null) |
| | | { |
| | | try |
| | | { |
| | |
| | | OPTION_LONG_BASEDN.toLowerCase(), OPTION_SHORT_BASEDN, |
| | | OPTION_LONG_BASEDN, false, true, true, |
| | | INFO_BASEDN_PLACEHOLDER.get(), |
| | | null, OPTION_LONG_BASEDN, |
| | | "dc=example,dc=com", OPTION_LONG_BASEDN, |
| | | INFO_INSTALLDS_DESCRIPTION_BASEDN.get()); |
| | | addArgument(baseDNArg); |
| | | |
| | |
| | | errorMessages.add(message); |
| | | } |
| | | |
| | | if (noPromptArg.isPresent() && !baseDNArg.isPresent()) |
| | | if (noPromptArg.isPresent() && !baseDNArg.isPresent() && |
| | | baseDNArg.getDefaultValue() == null) |
| | | { |
| | | Argument[] args = {importLDIFArg, addBaseEntryArg, sampleDataArg}; |
| | | for (Argument arg : args) |