September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_unbind(resource connectionID) Closes an open LDAP user authentication.
Returns:
TRUE on success; FALSE on failure
Description:
Unbinds from an LDAP directory. This should be used to gracefully disconnect from a directory, freeing the directory server’s resources.
Availability:
UNIX/Linux, Windows
Version:
3+, 4+
Example:
if (!$ldapconn = ldap_connect($host)) {
echo "Error! Could not connect to LDAP host $host\n";
}
ldap_bind($ldapconn);
// code here
ldap_unbind($ldapconn);
|
Read now
Unlock full access