[icinga-checkins] icinga.org: icingaweb2/bugfix/evaluate-redirect_remote_user-12164: ExternalBackendForm: make the variable a webserver assigns a username to configurable

git at icinga.org git at icinga.org
Tue Oct 18 14:16:21 CEST 2016


Module: icingaweb2
Branch: bugfix/evaluate-redirect_remote_user-12164
Commit: 790d83cb72177cf3ff9495e16d81feb2c8268bf7
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=790d83cb72177cf3ff9495e16d81feb2c8268bf7

Author: Alexander A. Klimov <alexander.klimov at icinga.com>
Date:   Tue Oct 18 13:44:01 2016 +0200

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 f4a4639..39c46d9 100644
--- a/application/forms/Config/UserBackend/ExternalBackendForm.php
+++ b/application/forms/Config/UserBackend/ExternalBackendForm.php
@@ -56,6 +56,18 @@ class ExternalBackendForm extends Form
             )
         );
         $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',
             array(



More information about the icinga-checkins mailing list