#include <ldap.h> int ldap_unbind_ext( LDAP *ld, LDAPControl **servctrls, LDAPControl **clientctrls )
The ldap_unbind_ext() function is used to end the connection to the LDAP server and free the resources contained in the ld structure.
Once it is called, any open connection associated with the LDAP session handle, ld, to the LDAP server is closed, and any resources associated with the handle are disposed of before returning. The ld structure is invalid and cannot be used for any further api calls. The ldap_unbind_ext() is synchronous and allows server and client controls to be included. Note that since there is no server response to an unbind there is no way to receive a response to a server control sent with an ldap_unbind_ext().
No i5/OS authority is required.
If ldap_unbind_ext() is not successful, it returns an LDAP error code other than LDAP_SUCCESS. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_unbind_ext API. |
Top | LDAP APIs | APIs by category |