ldap_unbind, ldap_unbind_s

Unbinds from the directory, closes the connection, and frees resources associated with the session. Functionally, there are no differences between ldap_unbind and ldap_unbind_s.

LDAP Version:v2 or higher
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int ldap_unbind[_s] (
     LDAP *ld);
  

Parameters

ld

(IN) Points to the handle of the LDAP session that is to be unbound.

Return Values

0x00

LDAP_SUCCESS

Non-zero

Failure. See LDAP Return Codes.

Remarks

After the call to ldap_unbind[_s], the session handle (ld) is invalid.

Note that there are no funtional differences between the four unbind functions.

See Also

ldap_unbind_ext, ldap_unbind_ext_s