mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Add LDAP Referrals Option
Summary: In order to perform the searches on Windows 2003 Server Active Directory you have to set the LDAP_OPT_REFERRALS option to 0 Test Plan: Test if LDAP works with Windows 2003 AD Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3004
This commit is contained in:
parent
67c302ae4f
commit
823555ce30
2 changed files with 11 additions and 0 deletions
|
@ -656,6 +656,11 @@ return array(
|
||||||
// The LDAP version
|
// The LDAP version
|
||||||
'ldap.version' => 3,
|
'ldap.version' => 3,
|
||||||
|
|
||||||
|
// LDAP Referrals Option
|
||||||
|
// Whether referrals should be followed by the client
|
||||||
|
// Should be set to 0 if you use Windows 2003 AD
|
||||||
|
'ldap.referrals' => 1,
|
||||||
|
|
||||||
// -- Disqus OAuth ---------------------------------------------------------- //
|
// -- Disqus OAuth ---------------------------------------------------------- //
|
||||||
|
|
||||||
// Can users use Disqus credentials to login to Phabricator?
|
// Can users use Disqus credentials to login to Phabricator?
|
||||||
|
|
|
@ -50,6 +50,10 @@ final class PhabricatorLDAPProvider {
|
||||||
return PhabricatorEnv::getEnvConfig('ldap.version');
|
return PhabricatorEnv::getEnvConfig('ldap.version');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getLDAPReferrals() {
|
||||||
|
return PhabricatorEnv::getEnvConfig('ldap.referrals');
|
||||||
|
}
|
||||||
|
|
||||||
public function retrieveUserEmail() {
|
public function retrieveUserEmail() {
|
||||||
return $this->userData['mail'][0];
|
return $this->userData['mail'][0];
|
||||||
}
|
}
|
||||||
|
@ -97,6 +101,8 @@ final class PhabricatorLDAPProvider {
|
||||||
|
|
||||||
ldap_set_option($this->connection, LDAP_OPT_PROTOCOL_VERSION,
|
ldap_set_option($this->connection, LDAP_OPT_PROTOCOL_VERSION,
|
||||||
$this->getLDAPVersion());
|
$this->getLDAPVersion());
|
||||||
|
ldap_set_option($this->connection, LDAP_OPT_REFERRALS,
|
||||||
|
$this->getLDAPReferrals());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->connection;
|
return $this->connection;
|
||||||
|
|
Loading…
Reference in a new issue