ldap_unbind

Description

The ldap_unbind() function unbinds and closes an existing LDAP server connection.

Syntax

result = ldap_unbind (LDAP_Connection);

Arguments

LDAP_Connection Required. An LDAP Server Connection that was created by ldap_ open().

Return Values

0 Unbind operation successful.
-1 Unbind operation failed.
result = ldap_unbind (ldapConnection);

In this example, an unbind and close are performed on the LDAP server connection ID specified in ldapConnection.

For more information, please see the following: