You are here

public function LdapServer::errorName in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_servers/LdapServer.class.php \LdapServer::errorName()
  2. 7 ldap_servers/LdapServer.class.php \LdapServer::errorName()

File

ldap_servers/LdapServer.class.php, line 1815
Defines server classes and related functions.

Class

LdapServer
LDAP Server Class

Code

public function errorName($type = NULL) {
  if ($type == 'ldap' && $this->connection) {
    return "LDAP Error: " . ldap_error($this->connection);
  }
  elseif ($type == NULL) {
    return $this->_errorName;
  }
  else {
    return NULL;
  }
}