public function LdapServer::errorMsg in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_servers/LdapServer.class.php \LdapServer::errorMsg()
- 7 ldap_servers/LdapServer.class.php \LdapServer::errorMsg()
3 calls to LdapServer::errorMsg()
- 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 2097 - Defines server classes and related functions.
Class
- LdapServer
- LDAP Server Class.
Code
public function errorMsg($type = NULL) {
if ($type == 'ldap' && $this->connection) {
return ldap_err2str(ldap_errno($this->connection));
}
elseif ($type == NULL) {
return $this->_errorMsg;
}
else {
return NULL;
}
}