mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Load LDAP provider correctly in bin/auth
LDAP debug script
Summary: Ref T1536. After DB-driven auth config, we need to load this differently. Test Plan: Ran `bin/auth ldap`. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6287
This commit is contained in:
parent
edee95e355
commit
705dfa25e6
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ final class PhabricatorAuthManagementLDAPWorkflow
|
||||||
$console = PhutilConsole::getConsole();
|
$console = PhutilConsole::getConsole();
|
||||||
$console->getServer()->setEnableLog(true);
|
$console->getServer()->setEnableLog(true);
|
||||||
|
|
||||||
$provider = new PhabricatorAuthProviderLDAP();
|
$provider = PhabricatorAuthProviderLDAP::getLDAPProvider();
|
||||||
if (!$provider->isEnabled()) {
|
if (!$provider) {
|
||||||
$console->writeOut(
|
$console->writeOut(
|
||||||
"%s\n",
|
"%s\n",
|
||||||
"The LDAP authentication provider is not enabled.");
|
"The LDAP authentication provider is not enabled.");
|
||||||
|
|
Loading…
Reference in a new issue