projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310c445
)
Re-bind as user if requested.
author
Jan Schneider
<jan@horde.org>
Mon, 20 Sep 2010 16:35:59 +0000
(18:35 +0200)
committer
Jan Schneider
<jan@horde.org>
Mon, 20 Sep 2010 16:35:59 +0000
(18:35 +0200)
framework/Core/lib/Horde/Core/Factory/Ldap.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Core/Factory/Ldap.php
b/framework/Core/lib/Horde/Core/Factory/Ldap.php
index
c73bfe0
..
11a983d
100644
(file)
--- 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();