Skip to content
Snippets Groups Projects
Commit e111c784 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Add new function for getting last LDAP error

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1229 44740490-163a-0410-bde0-09ae8108e29a
parent 5614af69
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,11 @@ class SimpleSAML_Auth_LDAP {
}
public function getLastError() {
if (ldap_errno($this->ldap) == 0) return NULL;
return ldap_error($this->ldap);
}
/**
* Set LDAP version 3 option on the connection handler. Will throw an error if not possible.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment