You are here

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

Same name and namespace in other branches
  1. 8.2 ldap_servers/LdapServer.class.php \LdapServer::ldapErrorNumber()
  2. 7.2 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
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 899
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;
  }
}