From 52df0eb39998738198deb520bb244b39dd0c08a2 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 5 Dec 2019 15:12:19 +0100 Subject: [PATCH 1/2] navigation/dashboard: Fix that an item's properties are not rendered --- application/views/scripts/navigation/dashboard.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/scripts/navigation/dashboard.phtml b/application/views/scripts/navigation/dashboard.phtml index 4f1d5c290..d9b2c6441 100644 --- a/application/views/scripts/navigation/dashboard.phtml +++ b/application/views/scripts/navigation/dashboard.phtml @@ -3,7 +3,7 @@
- + propertiesToString($item->getAttributes()) ?>> From 668ae38497dadab38a69d633d8e8c4cdad0baee4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 5 Dec 2019 15:13:02 +0100 Subject: [PATCH 2/2] ExternalBackend: Don't authenticate a user if `REMOTE_USER` is empty --- library/Icinga/Authentication/User/ExternalBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Authentication/User/ExternalBackend.php b/library/Icinga/Authentication/User/ExternalBackend.php index a6159818a..6e79928ae 100644 --- a/library/Icinga/Authentication/User/ExternalBackend.php +++ b/library/Icinga/Authentication/User/ExternalBackend.php @@ -70,11 +70,11 @@ class ExternalBackend implements UserBackendInterface public static function getRemoteUser($variable = 'REMOTE_USER') { $username = getenv($variable); - if ($username !== false) { + if (! empty($username)) { return $username; } - if (array_key_exists($variable, $_SERVER)) { + if (array_key_exists($variable, $_SERVER) && ! empty($_SERVER[$variable])) { return $_SERVER[$variable]; } }