From: Ben Klang Date: Wed, 9 Jun 2010 22:12:59 +0000 (-0400) Subject: Framework: Make sure to bind to LDAP when creating the object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a98af0380bf7db34b3ae8276ebe7e64fa1aa0017;p=horde.git Framework: Make sure to bind to LDAP when creating the object --- diff --git a/framework/Core/lib/Horde/Core/Factory/Ldap.php b/framework/Core/lib/Horde/Core/Factory/Ldap.php index a63b2adb1..b806da491 100644 --- a/framework/Core/lib/Horde/Core/Factory/Ldap.php +++ b/framework/Core/lib/Horde/Core/Factory/Ldap.php @@ -84,6 +84,8 @@ class Horde_Core_Factory_Ldap try { $this->_instances[$sig] = new Horde_Ldap($config); + // Establish the connection so it is available when searching later + $this->_instances[$sig]->bind(); } catch (Horde_Exception $e) { if ($pushed) { $GLOBALS['registry']->popApp();