Differential D25031 Diff 83 src/applications/auth/management/PhabricatorAuthManagementLDAPWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/management/PhabricatorAuthManagementLDAPWorkflow.php
Context not available. | |||||
$console->writeOut("%s\n", pht('Enter LDAP Credentials')); | $console->writeOut("%s\n", pht('Enter LDAP Credentials')); | ||||
$username = phutil_console_prompt(pht('LDAP Username: ')); | $username = phutil_console_prompt(pht('LDAP Username: ')); | ||||
if (!strlen($username)) { | if (!@strlen($username)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('You must enter an LDAP username.')); | pht('You must enter an LDAP username.')); | ||||
} | } | ||||
Context not available. | |||||
$password = phutil_console_prompt(pht('LDAP Password: ')); | $password = phutil_console_prompt(pht('LDAP Password: ')); | ||||
phutil_passthru('stty echo'); | phutil_passthru('stty echo'); | ||||
if (!strlen($password)) { | if (!@strlen($password)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('You must enter an LDAP password.')); | pht('You must enter an LDAP password.')); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0