Re: LDAP_SUCCES on ldap_search_ext when host is unreachable
Mark Smith <[email protected]> Mon, 07 Oct 2013 22:11:56 -0400
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
On 10/7/13 6:06 AM, Clement wrote: > Hello, > > I work on switch over ldap server and i have a problem when the host > is unreachable. For information, I use old versions (ldap sdk 5.1.5) but > i have the same problem with ldap sdk 6.0.7. > > My test is simple, i create a rules IPTABLES to drop packets to > first ldap server and i request the server with ldap_search_ext. This > function return LDAP_SUCCESS while the server is unreachable. > On an other test, i stop ldap service and ldap_search_ext return 81 > or ldap_can't contact ldap serveur. > > So, my server don't execute second search on the second server. > > For information, my programme test connection on start and create > handle on first server who's connect. every 3000 ms, i bind my two > server to verify if is always up. I do not have any recent experience with client-based failover. Maybe someone else on this list does. What platform is your client code running on? Are you running over NSPR? Does ldap_result() return an error after a server is taken down? Have you traced through the LDAP C SDK code or enabled debugging to look deeper at what is happening inside the ldap_search_ext() call? What options or special configuration are you using? -- Mark Smith Pearl Crescent, LLC http://pearlcrescent.com/