Differential D21013 Diff 50076 src/applications/auth/management/PhabricatorAuthManagementLDAPWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/management/PhabricatorAuthManagementLDAPWorkflow.php
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
| } | } | ||||
| $adapter->setLoginUsername($username); | $adapter->setLoginUsername($username); | ||||
| $adapter->setLoginPassword(new PhutilOpaqueEnvelope($password)); | $adapter->setLoginPassword(new PhutilOpaqueEnvelope($password)); | ||||
| $console->writeOut("\n"); | $console->writeOut("\n"); | ||||
| $console->writeOut("%s\n", pht('Connecting to LDAP...')); | $console->writeOut("%s\n", pht('Connecting to LDAP...')); | ||||
| $account_id = $adapter->getAccountID(); | $account_ids = $adapter->getAccountIdentifiers(); | ||||
| if ($account_id) { | if ($account_ids) { | ||||
| $console->writeOut("%s\n", pht('Found LDAP Account: %s', $account_id)); | $value_list = mpull($account_ids, 'getIdentifierRaw'); | ||||
| $value_list = implode(', ', $value_list); | |||||
| $console->writeOut("%s\n", pht('Found LDAP Account: %s', $value_list)); | |||||
| } else { | } else { | ||||
| $console->writeOut("%s\n", pht('Unable to find LDAP account!')); | $console->writeOut("%s\n", pht('Unable to find LDAP account!')); | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||