diff --git a/webui/system/database/ldap.php b/webui/system/database/ldap.php index eeb76fa0..119f97e5 100644 --- a/webui/system/database/ldap.php +++ b/webui/system/database/ldap.php @@ -10,6 +10,7 @@ class LDAP { $this->link = ldap_connect($ldaphost) or exit('Error: ldap_connect()'); ldap_set_option($this->link, LDAP_OPT_PROTOCOL_VERSION, 3); + ldap_set_option($this->link, LDAP_OPT_REFERRALS, 0); if(@ldap_bind($this->link, $binddn, $bindpw)) { $this->bind = 1;