From: Jan Schneider Date: Mon, 20 Sep 2010 16:35:59 +0000 (+0200) Subject: Re-bind as user if requested. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=eec0b4d3db417bebeaecec8b9dba5612744b6e0c;p=horde.git Re-bind as user if requested. --- diff --git a/framework/Core/lib/Horde/Core/Factory/Ldap.php b/framework/Core/lib/Horde/Core/Factory/Ldap.php index c73bfe0ba..11a983dd9 100644 --- a/framework/Core/lib/Horde/Core/Factory/Ldap.php +++ b/framework/Core/lib/Horde/Core/Factory/Ldap.php @@ -84,6 +84,11 @@ class Horde_Core_Factory_Ldap try { $this->_instances[$sig] = new Horde_Ldap($config); + if (isset($config['bindas']) && $config['bindas'] == 'user') { + $this->_instances[$sig]->bind( + $this->_instances[$sig]->findUserDN($GLOBALS['registry']->getAuth()), + $GLOBALS['registry']->getAuthCredential('password')); + } } catch (Horde_Exception $e) { if ($pushed) { $GLOBALS['registry']->popApp();