Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorLDAPAuthProvider.php
| Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
| $this->renderLoginForm($request, 'login')); | $this->renderLoginForm($request, 'login')); | ||||
| return array($account, $response); | return array($account, $response); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| // TODO: Make this cleaner. | // TODO: Make this cleaner. | ||||
| throw $ex; | throw $ex; | ||||
| } | } | ||||
| } | } | ||||
| return array($this->loadOrCreateAccount($identifiers), $response); | $account = $this->newExternalAccountForIdentifiers($identifiers); | ||||
| return array($account, $response); | |||||
| } | } | ||||
| const KEY_HOSTNAME = 'ldap:host'; | const KEY_HOSTNAME = 'ldap:host'; | ||||
| const KEY_PORT = 'ldap:port'; | const KEY_PORT = 'ldap:port'; | ||||
| const KEY_DISTINGUISHED_NAME = 'ldap:dn'; | const KEY_DISTINGUISHED_NAME = 'ldap:dn'; | ||||
| const KEY_SEARCH_ATTRIBUTES = 'ldap:search-attribute'; | const KEY_SEARCH_ATTRIBUTES = 'ldap:search-attribute'; | ||||
| const KEY_USERNAME_ATTRIBUTE = 'ldap:username-attribute'; | const KEY_USERNAME_ATTRIBUTE = 'ldap:username-attribute'; | ||||
| ▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines | |||||