Search code examples
ldapldapconnectionunboundid-ldap-sdk

How is possible to specify multiple servers for LDAPConnection using Unboundid SDK?


I want to specify multiple servers for LDAPConnection like configuration of LDAP URL for Apache: http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#authldapurl: ldap://host1 host2 host3:port/basedn?attribute?scope?filter.

What is the simplest way to do it? Is it possible to do it without LDAPConnectionPool?


Solution

  • Take a look at one of the sub-classes of com.unboundid.ldap.sdk.ServerSet.