ldap_unbind is used to unbind from the directory, terminate
the current association, and free the resources contained in the
ld structure. Once it is called, the connection to the
LDAP server is closed, and the ld structure is
invalid. ldap_unbind_s is just another name for
ldap_unbind; both of these functions are synchronous.
Return values
ldap_simple_bind_s returns LDAP_SUCCESS upon
successful completion, otherwise an LDAP error indication
(see
ldap_perror(3ldap)
for details).