Function : LDAP
ldap_unbind_s - Close all open connections associated with the LDAP session ID.
#include <ldap.h>
int LNPUBLIC ldap_unbind_s(
LDAP *ld);
This function closes all open connections associated with the LDAP session ID, and disposes of all resources associated with the session handle before returning.
Implemented as a macro:
define ldap_unbind_s(ld) ND_ldap_unbind_s((ld))
Parameters : Input : ld - The LDAP session handle.
Output : (routine) - LDAP_SUCCESS - If the request was successfully sent, or another LDAP result code if not.
Sample Usage :
ldap_unbind_s( ld );