diff --git a/application/forms/Config/UserBackend/ExternalBackendForm.php b/application/forms/Config/UserBackend/ExternalBackendForm.php index f4a463911..39c46d927 100644 --- a/application/forms/Config/UserBackend/ExternalBackendForm.php +++ b/application/forms/Config/UserBackend/ExternalBackendForm.php @@ -55,6 +55,18 @@ class ExternalBackendForm extends Form 'validators' => array($callbackValidator) ) ); + $this->addElement( + 'text', + 'username_envvar', + array( + 'label' => $this->translate('Username Environment Variable'), + 'description' => $this->translate( + 'The environment variable the webserver assigns the authenticated user\'s name to.' + ), + 'required' => true, + 'value' => 'REMOTE_USER' + ) + ); $this->addElement( 'hidden', 'backend',