function ldap_server::disconnect in Lightweight Directory Access Protocol (LDAP) 6
Disconnect (unbind) from an active LDAP server.
1 call to ldap_server::disconnect()
- ldap_server::__destruct in includes/
ldap.server.inc - Destructor Method
File
- includes/
ldap.server.inc, line 180 - Defines server classes and related functions.
Class
- ldap_server
- LDAP Server Class
Code
function disconnect() {
if (!$this->connection) {
watchdog('ldap', 'LDAP disconnect failure from ' . $this->server_addr . ':' . $this->port);
return FALSE;
}
ldap_unbind($this->connection);
$this->connection = NULL;
return TRUE;
}