ldap_unbind(3ldap)


ldap_unbind, ldap_unbind_s -- LDAP bind routines

Synopsis

#include <lber.h> 
#include <ldap.h> 

int ldap_unbind(LDAP *ld);

int ldap_unbind_s(LDAP *ld);

Description

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).

References

Intro(3ldap), ldap_init(3ldap), ldap_open(3ldap), ldap_perror(3ldap), ldap_simple_bind(3ldap)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.