| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.opendj.config.LDAPProfile; |
| | | import org.forgerock.opendj.config.client.ManagementContext; |
| | | import org.forgerock.opendj.config.client.ldap.LDAPManagementContext; |
| | | import org.forgerock.opendj.ldap.DN; |
| | |
| | | { |
| | | getInfo().initializeConfigurationFramework(); |
| | | final File config = Installation.getLocal().getCurrentConfigurationFile(); |
| | | final LDAPProfile profile = LDAPProfile.getInstance(); |
| | | try (ManagementContext context = LDAPManagementContext.newLDIFManagementContext(config, profile)) |
| | | try (ManagementContext context = LDAPManagementContext.newLDIFManagementContext(config)) |
| | | { |
| | | final BackendCfgClient backend = context.getRootConfiguration().getBackend(backendName); |
| | | final SortedSet<DN> baseDNs = backend.getBaseDN(); |