You are here

public function LdapServer::ldapErrorNumber in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_servers/LdapServer.class.php \LdapServer::ldapErrorNumber()
  2. 7 ldap_servers/LdapServer.class.php \LdapServer::ldapErrorNumber()
4 calls to LdapServer::ldapErrorNumber()
LdapServer::hasError in ldap_servers/LdapServer.class.php
LdapServer::ldapQuery in ldap_servers/LdapServer.class.php
Execute ldap query and return ldap records.
LdapServer::pagedLdapQuery in ldap_servers/LdapServer.class.php
Execute a paged ldap query and return entries as one aggregated array.
LdapServer::search in ldap_servers/LdapServer.class.php
Perform an LDAP search.

File

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

Class

LdapServer
LDAP Server Class.

Code

public function ldapErrorNumber() {
  if ($this->connection && ldap_errno($this->connection)) {
    return ldap_errno($this->connection);
  }
  else {
    return FALSE;
  }
}