public function SimpleLdapConnection::disconnect in Simple LDAP 8
Disconnect from LDAP server.
Overrides SimpleLdapConnectionInterface::disconnect
1 call to SimpleLdapConnection::disconnect()
File
- src/
SimpleLdapConnection.php, line 76
Class
Namespace
Drupal\simple_ldapCode
public function disconnect() {
if ($this->connection && is_resource($this->connection)) {
ldap_close($this->connection);
}
$this->connection = NULL;
}