From e1139109c8a16fb85860e5b4e94acdcf40df56fe Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 24 Jan 2024 20:53:38 +0100 Subject: [PATCH] System: Access: Tester - handle case insensitivty while reading groups. closes https://github.com/opnsense/core/issues/7140 --- src/www/diag_authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/diag_authentication.php b/src/www/diag_authentication.php index 5f6403bb0..547f092e1 100644 --- a/src/www/diag_authentication.php +++ b/src/www/diag_authentication.php @@ -59,7 +59,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { OPNsense\Core\Config::getInstance()->forceReload(); $config = parse_config(); $userindex = index_users(); - $groups = getUserGroups($_POST['username']); + $groups = getUserGroups($authenticator->getUserName($_POST['username'])); $savemsg .= "
" . gettext("This user is a member of these groups") . ":
"; foreach ($groups as $group) { $savemsg .= "{$group} ";