directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Crow <fjcrow2...@gmail.com>
Subject Re: Connecting to LDAP with default host or list of hosts
Date Wed, 30 Mar 2016 14:49:01 GMT
Does the method support a list of host names?   I'm using MMR on the
backend and need to find the easiest way to open a connection to either
replica master when one or the other may be unavailable.


Thanks,
Frank


On Wed, Mar 30, 2016 at 10:38 AM, Emmanuel Lécharny <elecharny@gmail.com>
wrote:

> Le 30/03/16 16:14, Frank Crow a écrit :
> > With the native "C" libraries, the ldap_init() method (and I *think* the
> > ldap_initialize() method) can take a null or a list of host names.    For
> > the null case, it will attempt to determine the default host.   For the
> > list case, it will connect to the first available host in the list.
> >
> > Does the Apache LDAP API support this behavior?
>
> Use the LdapNetworkConnection() constructor (no parameters). It will
> create a connection on localhost with port 389
>
>


-- 
Frank

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message