29.2. slapi_ldap_unbind()

Unbinds from another LDAP server and frees the resources contained in the LDAP structure.
Description

This function unbinds from another LDAP server. Call this function if you initialized the LDAP session with the slapi_ldap_init() function. Do not call the ldap_unbind() or ldap_unbind_s() functions provided with the Red Hat Directory SDK.

Syntax

#include "slapi-plugin.h"
void slapi_ldap_unbind( LDAP *ld );

Parameters

This function takes the following parameter:

ld
Connection handle, which is a pointer to an LDAP structure containing information about the connection to the LDAP server.