| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.opends.admin.ads.ADSContext.ServerProperty; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | |
| | | private final ADSContext adsContext; |
| | | private final ApplicationTrustManager trustManager; |
| | | private final int timeout; |
| | | private final String bindDN; |
| | | private final DN bindDN; |
| | | private final String bindPwd; |
| | | private final Set<ServerDescriptor> servers = new HashSet<>(); |
| | | private final Set<SuffixDescriptor> suffixes = new HashSet<>(); |
| | |
| | | this.adsContext = adsContext; |
| | | this.trustManager = trustManager; |
| | | this.timeout = timeout; |
| | | bindDN = ConnectionUtils.getBindDN(adsContext.getDirContext()); |
| | | bindPwd = ConnectionUtils.getBindPassword(adsContext.getDirContext()); |
| | | ConnectionWrapper conn = adsContext.getConnection(); |
| | | bindDN = conn.getBindDn(); |
| | | bindPwd = conn.getBindPassword(); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | return new ServerLoader(serverProperties, bindDN, bindPwd, |
| | | trustManager == null ? null : trustManager.createCopy(), |
| | | timeout, |
| | | getPreferredConnections(), getFilter()); |
| | | timeout, getPreferredConnections(), getFilter()); |
| | | } |
| | | |
| | | /** |