lib/Auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Tue Jul 10 13:21:23 CEST 2012


 lib/Auth/LDAP.php |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f321ed55bc01b2ce95b4df0be546fb797a9e012f
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Tue Jul 10 13:21:11 2012 +0200

    Make sure we bind before attempting to list the domain name spaces

diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index d701758..8b6c76d 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1040,6 +1040,10 @@ class LDAP
 
     private function domains_list()
     {
+        $conf = Conf::get_instance();
+
+        $this->_bind($conf->get('bind_dn'), $conf->get('bind_pw'));
+
         $section = $this->conf->get('kolab', 'auth_mechanism');
         $base_dn = $this->conf->get($section, 'domain_base_dn');
         $filter  = $this->conf->get($section, 'domain_filter');





More information about the commits mailing list