From 790d83cb72177cf3ff9495e16d81feb2c8268bf7 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 18 Oct 2016 13:44:01 +0200 Subject: [PATCH] ExternalBackendForm: make the variable a webserver assigns a username to configurable refs #12164 --- .../forms/Config/UserBackend/ExternalBackendForm.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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',