1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 17:28:51 +02: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:
epriestley 2013-06-24 10:37:40 -07:00
parent edee95e355
commit 705dfa25e6

View file

@ -15,8 +15,8 @@ final class PhabricatorAuthManagementLDAPWorkflow
$console = PhutilConsole::getConsole();
$console->getServer()->setEnableLog(true);
$provider = new PhabricatorAuthProviderLDAP();
if (!$provider->isEnabled()) {
$provider = PhabricatorAuthProviderLDAP::getLDAPProvider();
if (!$provider) {
$console->writeOut(
"%s\n",
"The LDAP authentication provider is not enabled.");