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.
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);