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.
#include <ldap.h> int ldap_unbind_ext[_s] ( LDAP *ld, LDAPControl **serverctrls, LDAPControl **clientctrls);
(IN) Points to the handle of the LDAP session that is to be unbound.
(IN) Points to a list of server controls. Use NULL to specify no server controls.
(IN) Points to a list of client controls. Use NULL to specify no client controls.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. See |
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.