summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-02-05 10:29:09 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-02-05 10:29:09 +0100
commitacebc3f41ebc1ed0bb62ec8abc053a969dae0ed3 (patch)
tree8c8c61bba7c74c14631429a28f8a9ce8b75c3d8c /apps/user_ldap
parent60b75b25f83fecceb72c5d28e3c05dac5d074457 (diff)
downloadnextcloud-server-acebc3f41ebc1ed0bb62ec8abc053a969dae0ed3.tar.gz
nextcloud-server-acebc3f41ebc1ed0bb62ec8abc053a969dae0ed3.zip
Wizard: disable LDAP referrals, fixes #6670
Diffstat (limited to 'apps/user_ldap')
-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);