#include <ldap.h> int ldap_unbind_s( LDAP *ld)
The ldap_unbind_s() 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 to the LDAP server is closed, and the ld structure is invalid. The ldap_unbind_s() and ldap_unbind() APIs are both synchronous and can be used interchangeably.
No i5/OS authority is required.
If ldap_unbind_s() is not successful, it returns another LDAP error code. 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_s API. |
Top | LDAP APIs | APIs by category |