-1

I have created secure LDAP connection following this example using unboundid SDK.

I can create LDAPConnectionPool for unsecured servers using following code.

LDAPConnectionPool connectionPool = new LDAPConnectionPool(serverSet, bindRequest, 10);

How can I create LDAPConnectionPool for more than one servers(ldap and ldaps) i.e. both secure and unsecured.

Community
  • 1
  • 1
Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190

1 Answers1

0

Serverset in

LDAPConnectionPool connectionPool = new LDAPConnectionPool(serverSet, bindRequest, 10); can set socketFactory

so whatever your server set is "failoverSet" or "roundRobinSet" it can set socketfactory in its constructor like

roundRobinSet = new RoundRobinServerSet(addresses, ports, socketFactory);
Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190