Fix for OPENDJ-3380. Reject adding a backend with an empty baseDN.
| | |
| | | BaseDnRegistry reg = DirectoryServer.copyBaseDnRegistry(); |
| | | for (DN baseDN : baseDNs) |
| | | { |
| | | if (baseDN.isRootDN()) |
| | | { |
| | | unacceptableReason.add(ERR_CONFIG_BACKEND_BASE_IS_EMPTY.get(backendDN)); |
| | | return false; |
| | | } |
| | | try |
| | | { |
| | | reg.registerBaseDN(baseDN, backend, false); |
| | |
| | | WARN_CONFIG_SCHEMA_FILE_HAS_SCHEMA_WARNING_761=The config schema file '%s' generated warning when \ |
| | | trying to update schema with its content: %s |
| | | WARN_CONFIG_SCHEMA_FILE_HAS_SCHEMA_WARNING_WITH_OVERWRITE_762=The config schema file '%s' generated \ |
| | | warning when trying to update schema with its content, despite allowing to overwrite definitions: %s |
| | | warning when trying to update schema with its content, despite allowing to overwrite definitions: %s |
| | | ERR_CONFIG_BACKEND_BASE_IS_EMPTY_763=Unable to configure the backend '%s' because one of its base DNs is the empty DN |