Framework: Make sure to bind to LDAP when creating the object
authorBen Klang <ben@alkaloid.net>
Wed, 9 Jun 2010 22:12:59 +0000 (18:12 -0400)
committerBen Klang <ben@alkaloid.net>
Wed, 9 Jun 2010 22:13:42 +0000 (18:13 -0400)
framework/Core/lib/Horde/Core/Factory/Ldap.php

index a63b2ad..b806da4 100644 (file)
@@ -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();