ldap_unbind_ext, ldap_unbind_ext_s

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

LDAP Version:v3
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_ext[_s] (
     LDAP           *ld,
     LDAPControl   **serverctrls,
     LDAPControl   **clientctrls);
  
  

Parameters

ld

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

serverctrls

(IN) Points to a list of server controls. Use NULL to specify no server controls.

clientctrls

(IN) Points to a list of client controls. Use NULL to specify no client controls.

Return Values

0x00

LDAP_SUCCESS

Non-zero

Failure. See LDAP Return Codes.

Remarks

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

Ldap_unbind_ext allows controls to be specified with the operation. eDirectory does not currently support any server-side controls to use with an unbind operation.

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

See Also

ldap_unbind, ldap_unbind_s