You are here

public function SimpleLdapConnection::disconnect in Simple LDAP 8

Disconnect from LDAP server.

Overrides SimpleLdapConnectionInterface::disconnect

1 call to SimpleLdapConnection::disconnect()
SimpleLdapConnection::__destruct in src/SimpleLdapConnection.php

File

src/SimpleLdapConnection.php, line 76

Class

SimpleLdapConnection

Namespace

Drupal\simple_ldap

Code

public function disconnect() {
  if ($this->connection && is_resource($this->connection)) {
    ldap_close($this->connection);
  }
  $this->connection = NULL;
}