From bca2e1b309ca5ecc03d01e2cbe877a55e994e876 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 30 Aug 2016 21:56:23 +0200 Subject: [PATCH] * [FIX] Fixed LDAP ADS listing issue when base search is set to the domain top level. Thanks to @eth0h4ckr for the feedback. #264 --- inc/Ldap.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/Ldap.class.php b/inc/Ldap.class.php index 998d0a49..cee1a938 100644 --- a/inc/Ldap.class.php +++ b/inc/Ldap.class.php @@ -141,6 +141,10 @@ class Ldap @ldap_set_option(self::$_ldapConn, LDAP_OPT_NETWORK_TIMEOUT, 10); // Set timeout @ldap_set_option(self::$_ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3); // Set LDAP version + if (self::$_ADS) { + @ldap_set_option(self::$_ldapConn, LDAP_OPT_REFERRALS, 0); + } + return true; }