From 2d15ddb9f3fb0f03125e7a8a3bff8588f36a4a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Tue, 3 Feb 2009 14:34:54 +0000 Subject: [PATCH] fix wrong parameter name git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1234 44740490-163a-0410-bde0-09ae8108e29a --- modules/ldapstatus/lib/LDAPTester.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ldapstatus/lib/LDAPTester.php b/modules/ldapstatus/lib/LDAPTester.php index 51a122ae2..cc5222f00 100644 --- a/modules/ldapstatus/lib/LDAPTester.php +++ b/modules/ldapstatus/lib/LDAPTester.php @@ -112,7 +112,7 @@ class sspmod_ldapstatus_LDAPTester { if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError()); $result['connect'] = array(TRUE,NULL); } 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['time'] = microtime(TRUE) - $start; return $result; @@ -121,7 +121,7 @@ class sspmod_ldapstatus_LDAPTester { // Bind as admin user if (isset($this->orgconfig['adminUser'])) { try { - $this->log('ldapstatus: Admin bind() [' .$orgkey . ']'); + $this->log('ldapstatus: Admin bind() [' .$this->orgconfig['hostname'] . ']'); $success = $ldap->bind($this->orgconfig['adminUser'], $this->orgconfig['adminPassword']); if ($ldap->getLastError()) throw new Exception('LDAP warning: ' . $ldap->getLastError()); if ($success) { -- GitLab