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

fix wrong parameter name

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1234 44740490-163a-0410-bde0-09ae8108e29a
parent 0efe8cb5
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ class sspmod_ldapstatus_LDAPTester { ...@@ -112,7 +112,7 @@ class sspmod_ldapstatus_LDAPTester {
if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError()); if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError());
$result['connect'] = array(TRUE,NULL); $result['connect'] = array(TRUE,NULL);
} catch (Exception $e) { } catch (Exception $e) {
$this->log('ldapstatus: Connect error() [' .$orgkey . ']: ' . $e->getMessage()); $this->log('ldapstatus: Connect error() [' .$this->orgconfig['hostname'] . ']: ' . $e->getMessage());
$result['connect'] = array(FALSE,$e->getMessage()); $result['connect'] = array(FALSE,$e->getMessage());
$result['time'] = microtime(TRUE) - $start; $result['time'] = microtime(TRUE) - $start;
return $result; return $result;
...@@ -121,7 +121,7 @@ class sspmod_ldapstatus_LDAPTester { ...@@ -121,7 +121,7 @@ class sspmod_ldapstatus_LDAPTester {
// Bind as admin user // Bind as admin user
if (isset($this->orgconfig['adminUser'])) { if (isset($this->orgconfig['adminUser'])) {
try { try {
$this->log('ldapstatus: Admin bind() [' .$orgkey . ']'); $this->log('ldapstatus: Admin bind() [' .$this->orgconfig['hostname'] . ']');
$success = $ldap->bind($this->orgconfig['adminUser'], $this->orgconfig['adminPassword']); $success = $ldap->bind($this->orgconfig['adminUser'], $this->orgconfig['adminPassword']);
if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError()); if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError());
if ($success) { if ($success) {
......
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