From: Jan Schneider Date: Fri, 17 Sep 2010 11:54:14 +0000 (+0200) Subject: Fix configuration parameter names. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9beaacf963dd5042ce1e3dc46579c792471fcdff;p=horde.git Fix configuration parameter names. --- diff --git a/framework/Ldap/test/Horde/Ldap/LdapTest.php b/framework/Ldap/test/Horde/Ldap/LdapTest.php index e15a05217..ef62518e6 100644 --- a/framework/Ldap/test/Horde/Ldap/LdapTest.php +++ b/framework/Ldap/test/Horde/Ldap/LdapTest.php @@ -37,29 +37,29 @@ class Horde_Ldap_LdapTest extends Horde_Ldap_TestBase public function testConnectAndPrivilegedBind() { // This connect is supposed to fail. - $lcfg = array('host' => 'nonexistant.ldap.horde.org'); + $lcfg = array('hostspec' => 'nonexistant.ldap.horde.org'); try { $ldap = new Horde_Ldap($lcfg); $this->fail('Horde_Ldap_Exception expected.'); } catch (Horde_Ldap_Exception $e) {} // Failing with multiple hosts. - $lcfg = array('host' => array('nonexistant1.ldap.horde.org', - 'nonexistant2.ldap.horde.org')); + $lcfg = array('hostspec' => array('nonexistant1.ldap.horde.org', + 'nonexistant2.ldap.horde.org')); try { $ldap = new Horde_Ldap($lcfg); $this->fail('Horde_Ldap_Exception expected.'); } catch (Horde_Ldap_Exception $e) {} - // Simple working connect and privilegued bind. + // Simple working connect and privileged bind. $ldap = new Horde_Ldap(self::$ldapcfg['server']); // Working connect and privileged bind with first host down. - $lcfg = array('host' => array('nonexistant.ldap.horde.org', - self::$ldapcfg['server']['host']), - 'port' => self::$ldapcfg['server']['port'], - 'binddn' => self::$ldapcfg['server']['binddn'], - 'bindpw' => self::$ldapcfg['server']['bindpw']); + $lcfg = array('hostspec' => array('nonexistant.ldap.horde.org', + self::$ldapcfg['server']['hostspec']), + 'port' => self::$ldapcfg['server']['port'], + 'writedn' => self::$ldapcfg['server']['writedn'], + 'writepw' => self::$ldapcfg['server']['writepw']); $ldap = new Horde_Ldap($lcfg); } @@ -73,8 +73,8 @@ class Horde_Ldap_LdapTest extends Horde_Ldap_TestBase } // Simple working connect and anonymous bind. - $lcfg = array('host' => self::$ldapcfg['server']['host'], - 'port' => self::$ldapcfg['server']['port']); + $lcfg = array('hostspec' => self::$ldapcfg['server']['hostspec'], + 'port' => self::$ldapcfg['server']['port']); $ldap = new Horde_Ldap($lcfg); } diff --git a/framework/Ldap/test/Horde/Ldap/conf.php.dist b/framework/Ldap/test/Horde/Ldap/conf.php.dist index 2678d3122..0d71890ab 100644 --- a/framework/Ldap/test/Horde/Ldap/conf.php.dist +++ b/framework/Ldap/test/Horde/Ldap/conf.php.dist @@ -1,11 +1,11 @@ array( - 'host' => 'localhost', - 'port' => 389, - 'basedn' => 'ou=hordetest,dc=example,dc=com', - 'writedn' => 'cn=admin,dc=example,dc=com', - 'writepw' => 'secret'), + 'hostspec' => 'localhost', + 'port' => 389, + 'basedn' => 'ou=hordetest,dc=example,dc=com', + 'writedn' => 'cn=admin,dc=example,dc=com', + 'writepw' => 'secret'), 'capability' => array( 'anonymous' => true, 'tls' => true),