| | |
| | | */ |
| | | package org.opends.admin.ads; |
| | | |
| | | import static org.opends.admin.ads.util.ConnectionUtils.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.HashSet; |
| | |
| | | import javax.naming.NameNotFoundException; |
| | | import javax.naming.NamingEnumeration; |
| | | import javax.naming.NamingException; |
| | | import javax.naming.directory.*; |
| | | import javax.naming.directory.Attribute; |
| | | import javax.naming.directory.Attributes; |
| | | import javax.naming.directory.BasicAttribute; |
| | | import javax.naming.directory.BasicAttributes; |
| | | import javax.naming.directory.SearchControls; |
| | | import javax.naming.directory.SearchResult; |
| | | import javax.naming.ldap.InitialLdapContext; |
| | | import javax.naming.ldap.LdapName; |
| | | import javax.naming.ldap.Rdn; |
| | |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | | import org.opends.quicksetup.Constants; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.config.ConfigConstants; |
| | | import org.opends.server.schema.SchemaConstants; |
| | | |
| | | import static org.opends.admin.ads.util.ConnectionUtils.*; |
| | | |
| | | /** |
| | | * The object of this class represent an OpenDS server. |
| | | */ |
| | |
| | | ctls.setReturningAttributes( |
| | | new String[] { |
| | | "ds-cfg-base-dn", |
| | | "ds-cfg-backend-id" |
| | | "ds-cfg-backend-id", |
| | | ConfigConstants.ATTR_OBJECTCLASS |
| | | }); |
| | | String filter = "(objectclass=ds-cfg-backend)"; |
| | | |
| | |
| | | suffix.setDN(baseDn); |
| | | ReplicaDescriptor replica = new ReplicaDescriptor(); |
| | | replica.setServer(desc); |
| | | replica.setObjectClasses(getValues(sr, ConfigConstants.ATTR_OBJECTCLASS)); |
| | | replica.setBackendName(id); |
| | | replicas.add(replica); |
| | | HashSet<ReplicaDescriptor> r = new HashSet<>(); |