[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: The OpenLDAP Client and Multiple DNS Records

Howard Chu wrote:
George Holbert wrote:
Tim Gustafson wrote:

How does the OpenLDAP client library handle multiple A records being returned for a DNS query for an LDAP server?

OpenLDAP doesn't alter hosts resolution behavior.
As usual, the first address (A record) returned would be used.

That is to say, if "host ldap" returns, and, will the OpenLDAP client library only connect to  If a connection to fails, will it try and then

It will not try or automatically if a connection attempt
to fails.
It might happen to try them on the next connection, if the host needs to
resolve the LDAP server's name again, and either or is
the first A record returned.

False. If multiple A records are returned, if the first address fails it will continue on to the next, stopping when something succeeds or it runs out of alternatives.

Wow. Then OpenLDAP handles this a lot more intelligently than I thought. Thanks Howard!