directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Connecting to LDAP with default host or list of hosts
Date Wed, 30 Mar 2016 14:38:39 GMT
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


Mime
View raw message