[Date Prev][Date Next]
Re: The OpenLDAP Client and Multiple DNS Records
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 220.127.116.11, 18.104.22.168 and 22.214.171.124, will the OpenLDAP client library only connect to 126.96.36.199? If a connection to 188.8.131.52 fails, will it try 184.108.40.206 and then 220.127.116.11?
It will not try 18.104.22.168 or 22.214.171.124 automatically if a connection attempt
to 126.96.36.199 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 188.8.131.52 or 184.108.40.206 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
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/