I was reading through the documentation on how to handle failover or being disconnected from an LDAP server in my apps. One method is to call ldap_unbind and reconnect and rebind, while the other method is set the LDAP_OPT_RECONNECT option and only rebind (i.e. don't call ldap_unbind).

http://www.mozilla.org/directory/csdk-docs/using.htm#handle_failover

We had been using the former of the two methods, but some of our apps were coring randomly during the ldap_unbind call. I want to switch over to the latter of the two failover methods, but I wasn't sure of the consequences. My main concern is we pass in two LDAP servers when we init the LDAP connection (in ldap_init). During a failover, if I don't re-init the connection object and just re-issue the rebind command, is the code smart enough to try both servers still?

I also was curious how well this failover method works when using the ssl ldap_init functions. Does it work the same way...I only have to issue my rebind command and not worry about re-initing the connection object? And again, will it still try both hosts I originally passed in during the init?

Any info on the subject would be appreciated.  Thanks,

Mike
_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to