From a98af0380bf7db34b3ae8276ebe7e64fa1aa0017 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 9 Jun 2010 18:12:59 -0400 Subject: [PATCH] Framework: Make sure to bind to LDAP when creating the object --- framework/Core/lib/Horde/Core/Factory/Ldap.php | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.11.0