lib/Auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Wed May 22 11:58:48 CEST 2013


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

New commits:
commit 2ff17be92ab0452870c61af90d96273598babbd6
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed May 22 11:58:14 2013 +0200

    Make sure that if no valid result exists for the domain name space search, we return a standard root dn

diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 7eb1bb2..b9470c3 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1310,6 +1310,10 @@ class LDAP extends Net_LDAP3 {
 
         $result = $this->_search($domain_base_dn, $domain_filter);
 
+        if (!$result) {
+            return $this->_standard_root_dn($domain);
+        }
+
         $entries = $result->entries(true);
         $entry_dn = key($entries);
         $entry_attrs = $entries[$entry_dn];





More information about the commits mailing list