| | |
| | | import org.opends.server.admin.std.server.RootDNUserCfg; |
| | | import org.opends.server.admin.std.server.SNMPConnectionHandlerCfg; |
| | | import org.opends.server.admin.std.server.TaskBackendCfg; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.OpenDsException; |
| | |
| | | } |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(ce); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | for (String connHandler : root.listConnectionHandlers()) |
| | | { |
| | |
| | | null, index.getIndexType(), index.getIndexEntryLimit())); |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | indexes.add(new IndexDescriptor("dn2id", null, null, |
| | | new TreeSet<IndexType>(), -1)); |
| | |
| | | sortOrder, index.getMaxBlockSize())); |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | } |
| | | else if (backend instanceof LDIFBackendCfg) |
| | |
| | | |
| | | bs.add(desc); |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | } |
| | | |
| | |
| | | CryptoManagerCfg cryptoManager = root.getCryptoManager(); |
| | | isReplicationSecure = cryptoManager.isSSLEncryption(); |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | |
| | | |
| | |
| | | sync = (ReplicationSynchronizationProviderCfg) |
| | | root.getSynchronizationProvider("Multimaster Synchronization"); |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | // Ignore this one |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | | catch (ConfigException ce) |
| | | { |
| | | ex.add(oe); |
| | | ex.add(toConfigException(ce)); |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | |
| | | backends = Collections.unmodifiableSet(bs); |
| | | } |
| | | |
| | | |
| | | private org.opends.server.config.ConfigException toConfigException(ConfigException ce) |
| | | { |
| | | return new org.opends.server.config.ConfigException(ce.getMessageObject(), ce); |
| | | } |
| | | |
| | | private ConnectionHandlerDescriptor getConnectionHandler( |
| | | ConnectionHandlerCfg connHandler, String name) throws OpenDsException |
| | | { |