summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-02-05 10:29:09 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-02-10 11:28:55 +0100
commite825a008c9b99199bc91b87cb0e5ca88109aa202 (patch)
treeb4a85727eef6036c4d5aff1741cd85248b7b5006
parenta908bd56953edb94f48dc483278f5427d51c17b2 (diff)
downloadnextcloud-server-e825a008c9b99199bc91b87cb0e5ca88109aa202.tar.gz
nextcloud-server-e825a008c9b99199bc91b87cb0e5ca88109aa202.zip
Wizard: disable LDAP referrals, fixes #6670
-rw-r--r--apps/user_ldap/lib/wizard.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 30ce455274b..00623b74fb1 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -1014,6 +1014,7 @@ class Wizard extends LDAPUtility {
$this->configuration->ldapPort);
$this->ldap->setOption($cr, LDAP_OPT_PROTOCOL_VERSION, 3);
+ $this->ldap->setOption($cr, LDAP_OPT_REFERRALS, 0);
$this->ldap->setOption($cr, LDAP_OPT_NETWORK_TIMEOUT, self::LDAP_NW_TIMEOUT);
if($this->configuration->ldapTLS === 1) {
$this->ldap->startTls($cr);