<p>that&#39;s an issue with tcp timeouts ist a sysctl setting but I&#39;m not sure entierly which one. Keep in mind though that would be a global setting on all of the clients for all tcp connections so adjusting. That may produce undisired side effects. Ill assume you are using the standard openldap client. Unfortunatly while it is possible for an application to give you options to controle these setting for just its connections, I don&#39;t think the openldap client was writen with this in mind. So you will have to choose betwean changing the setting globaly or dealing with it. But it isn&#39;t specificly an issue with 389 servers.</p>

<div class="gmail_quote">On Jul 6, 2012 6:32 PM, &quot;Howard Chu&quot; &lt;<a href="mailto:hyc@symas.com">hyc@symas.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Fri, 06 Jul 2012 12:29:55 -0600<br>
From: Rich Megginson &lt;<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a>&gt;<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 07/06/2012 12:27 PM, Ryan Palamara wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;<br>
&gt; I am using a mix of CentOS 5 and 6 servers using openldap for client<br>
&gt; ldap. I have 2 289 Directory servers that are using multi-master<br>
&gt; replication.<br>
&gt;<br>
&gt; When dirsrv stops working on the first server listed under URI,<br>
&gt; authentication picks up seamlessly on the second LDAP server listed.<br>
&gt;<br>
&gt; However if the first server is down completely, it then takes a long<br>
&gt; time for authentication for go to the second server.<br>
&gt;<br>
&gt; Any suggestions on what can be done with openldap, to allow the<br>
&gt; seamless failover to the second server when the first one is down<br>
&gt; completely?<br>
&gt;<br>
</blockquote>
<br>
Can you explain exactly what you mean by &quot;stops working&quot; and &quot;down<br>
completely&quot;?  I&#39;m not sure why that would make a difference.<br>
</blockquote>
<br>
When the host is down, the TCP connect request must timeout before the client library will see a failure and move on to the next server. When the host is up but the directory server is down, the host will immediately send a TCP connection refused, so the client will switch immediately.<br>

<br>
The solution is to look into the LDAP network timeout option, to tell the OpenLDAP library to wait for a shorter amount of time for the connection attempt. (LDAP_OPT_NETWORK_TIMEOUT)<br>
<br>
-- <br>
  -- Howard Chu<br>
  CTO, Symas Corp.           <a href="http://www.symas.com" target="_blank">http://www.symas.com</a><br>
  Director, Highland Sun     <a href="http://highlandsun.com/hyc/" target="_blank">http://highlandsun.com/hyc/</a><br>
  Chief Architect, OpenLDAP  <a href="http://www.openldap.org/project/" target="_blank">http://www.openldap.org/<u></u>project/</a><br>
<br>
<br>
--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.<u></u>org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.<u></u>org/mailman/listinfo/389-users</a></blockquote></div>