
Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
[Date Prev][Date Next] [Thread Prev][Thread Next]Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
- From: Howard Wilkinson <howard [at] cohtech.com>
- To: Mathieu MILLET <ldap [at] htam.net>, nssldap [at] padl.com
- Subject: Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
- Date: Sun, 16 Nov 2008 10:11:41 +0000
Mathieu MILLET wrote:
This is active directory so we get the IP address of all interfaces on all domain controllers! In this case this is 2 addresses! Yes I am sure it works but it looks from the code that it may be subject to a number of "stalls" as the 'closing' server may accept the connection but not respond to the LDAP interaction correctly (I am still tryng to confirm if the server just sends empty responses during this time window or if it sends some error status or what - need to capture a network trace here)Depending on your DNS server and your DNS resolver (client), the upper openldap libray may get a single IP address as an answer. And since the DNS resolution was successful, there is no reason not to keep this "correct" IP address. So, the ldap library will keep this IP address for the sole need to establish the connection. If the connection fails and there is no other "IP address" to try, ... no luck.While the exchange server machine is shutting down we get login failures{snip]Now I could use a url with multiple host names and it looks like this might work a bit better, as the code seems to have a mechanism to iterate through the hosts.Using multiple uri is definitely working (using here), just be sure to adjust timer. By default, on a Linux system, complete login (including typing user and password and granting access) must be performed in less than 60 seconds. So you may have to lower the bind_timelimit and timelimit, but that could become tricky with the "sometines loaded" server. Problem is not at the DNS level - the LDAP servers stay listed unless you demote the domain controller - so a shut down server is still in the list returned from DNS, but will not accept a connect so that times out fast!But I was wondering if this should be fixed in the OpenLDAP library especially as listing the Domain Name allows us to add and remove AD servers dynamically and the DNS provides the lookup.Sorry, I don't understand what you mean (maybe english isn't so good :-( ). But about DNS (servers and clients), don't forget that their some timing issue regarding the propagation of new "updated" information. This is only half of what is needed to do sites and services, but is better than nothing! At least the server round robin would be attempted!As an alternative or an addition should we be handling the sites and services information in the DNS and binding via SRV lookups? Again is this a job for the OpenLDAP library or should nss_ldap handle this.Well, in fact, the openldap libray is already implementing this. With the standard ldap client library, if you don't specifiy any uri or host, the client will use the base 'dn' suffix (if it is coded with "dc" object) and make DNS SRV requests based on the "suffix" domain to retrieve the ldap servers addresses. Thanks I will look at this, but I still think the problem lies down in the one-at-a-time nature of the OpenLDAP libraries connection attempts to the servers.Concerning the nssldap, it seems (never tested personnaly) that srv records can be used to determine LDAP servers. See the private function _nss_ldap_mergeconfigfromdns from ldap-nss.c . To know precisely, which(what?) DNS requests are performed, just put a tcpdump and listen for everything passing on UDP port 53. I am struggling to work out which mailing list in the OpenLDAP fora would be appropriate to try to discuss this and was hoping somebody here could also point me down that path. Regards, Howard.I hope my explanations will help you. Sincerely yours, Mathieu MILLET. Thanks for this, has clarified some of my concerns, but still leaves me with an issue with this set up. Howard. |
- [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!,
Howard Wilkinson
- Message not available
- Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!, Howard Wilkinson
- Message not available
- Prev by Date: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
- Next by Date: Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
- Previous by thread: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!
- Next by thread: Re: [nssldap] Multiple LDAP servers, single URI, server shutting down, hangs or fails!