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.
#include <ldap.h> int ldap_unbind[_s] ( LDAP *ld);
(IN) Points to the handle of the LDAP session that is to be unbound.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. See |
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.