diff options
author | alecpl <alec@alec.pl> | 2011-11-30 13:11:34 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-30 13:11:34 +0000 |
commit | 6f98b9100b191e0a74a947a67da9c7575931bd71 (patch) | |
tree | 4923c51d7f25879684fb64f717bc55291b485b3c /program | |
parent | 0597586b89e86e8b4e22080d4c453475057b47b5 (diff) |
- Applied r5515 from trunk
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_ldap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 801450452..95377c7cb 100644 --- a/program/include/rcube_ldap.php +++ b/program/include/rcube_ldap.php @@ -228,6 +228,10 @@ class rcube_ldap extends rcube_addressbook $replaces = array('%dn' => '', '%dc' => $dc, '%d' => $d, '%fu' => $fu, '%u' => $u); if ($this->prop['search_base_dn'] && $this->prop['search_filter']) { + if (!empty$this->prop['search_bind_dn']) && !empty($this->prop['search_bind_pw'])) { + $this->bind($this->prop['search_bind_dn'], $this->prop['search_bind_pw']); + } + // Search for the dn to use to authenticate $this->prop['search_base_dn'] = strtr($this->prop['search_base_dn'], $replaces); $this->prop['search_filter'] = strtr($this->prop['search_filter'], $replaces); |