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

More debug LDAP logging in LDAP class

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1177 44740490-163a-0410-bde0-09ae8108e29a
parent 354d2bd0
Loading
...@@ -101,8 +101,8 @@ class SimpleSAML_Auth_LDAP { ...@@ -101,8 +101,8 @@ class SimpleSAML_Auth_LDAP {
* of throwing an exception if no results was found. * of throwing an exception if no results was found.
*/ */
public function searchfordn($searchbase, $searchattr, $searchvalue, $allowZeroHits = FALSE) { public function searchfordn($searchbase, $searchattr, $searchvalue, $allowZeroHits = FALSE) {
SimpleSAML_Logger::debug('Library - LDAP: searchfordn() Search for entries');
$searchbases = SimpleSAML_Utilities::arrayize($searchbase); $searchbases = SimpleSAML_Utilities::arrayize($searchbase);
/** /**
...@@ -120,7 +120,8 @@ class SimpleSAML_Auth_LDAP { ...@@ -120,7 +120,8 @@ class SimpleSAML_Auth_LDAP {
$e->getMessage()); $e->getMessage());
} }
} }
SimpleSAML_Logger::debug('Library - LDAP: searchfordn() Zero entries found');
if ($allowZeroHits) { if ($allowZeroHits) {
return NULL; return NULL;
} else { } else {
......
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