Hi Qiang,

Thanks for your suggestion. No, I didn't call ldap_unbind() to destroy
the handle. I'm using LDAP_OPT_RECONNECT option. According to the SDK
doc (http://www.mozilla.org/directory/csdk-docs/
using.htm#handle_failover), I shouldn't need to call ldap_unbind() to
reconnect, right?

As to ldap_unbind_s(), the SDK doc (http://www.mozilla.org/directory/
csdk-docs/writing.htm#close_connection_server) says "Both ldap_unbind
() and ldap_unbind_s() are synchronous functions. These functions are
identical; they use different names so that each authentication
function (ldap_simple_bind() and ldap_simple_bind_s()) has a
corresponding function for closing the server connection". Also the
definitions of these two functions look almost the same to me.

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

Reply via email to