You are here

public function SimpleLdapServer::unbind in Simple LDAP 7.2

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

Unbind from the LDAP server.

@throw SimpleLdapException

Return value

boolean TRUE on success

3 calls to SimpleLdapServer::unbind()
SimpleLdapServer::disconnect in ./SimpleLdapServer.class.php
Unbind and disconnect from the LDAP server.
SimpleLdapServer::__destruct in ./SimpleLdapServer.class.php
Destructor.
SimpleLdapServer::__set in ./SimpleLdapServer.class.php
Magic __set() function, handles changing server settings.

File

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

Class

SimpleLdapServer
Simple LDAP server class.

Code

public function unbind() {
  if ($this->bound) {
    SimpleLdap::ldap_unbind($this->resource);
    $this->bound = FALSE;
  }
  return TRUE;
}