Re: Crash in ldap_unbind()
[email protected] Thu, 30 Apr 2009 15:04:40 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
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