You are here

protected function SimpleLdapServer::disconnect in Simple LDAP 7

Same name and namespace in other branches
  1. 7.2 SimpleLdapServer.class.php \SimpleLdapServer::disconnect()

Unbind and disconnect from the LDAP server.

@throw SimpleLdapException

Return value

boolean TRUE on success.

1 call to SimpleLdapServer::disconnect()
SimpleLdapServer::__set in ./SimpleLdapServer.class.php
Magic __set() function, handles changing server settings.

File

./SimpleLdapServer.class.php, line 689
Class to handle LDAP server connections and related operations.

Class

SimpleLdapServer
Simple LDAP server class.

Code

protected function disconnect() {
  $this
    ->unbind();
  $this->resource = FALSE;
  return TRUE;
}