From 7b395acb8446e44fe0f896cfaf4e37e062fd74ed Mon Sep 17 00:00:00 2001 From: Andreas Krist Date: Tue, 2 Jun 2026 13:59:26 +0200 Subject: [PATCH] Use string 'true' for the 'exact' query parameter to retrieve users from Keycloak --- data/web/inc/functions.auth.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.auth.inc.php b/data/web/inc/functions.auth.inc.php index e5a303f9b..02d85b404 100644 --- a/data/web/inc/functions.auth.inc.php +++ b/data/web/inc/functions.auth.inc.php @@ -515,7 +515,7 @@ function keycloak_mbox_login_rest($user, $pass, $extra = null){ // get the mailcow_password attribute from keycloak user $url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users"; - $queryParams = array('email' => $user, 'exact' => true); + $queryParams = array('email' => $user, 'exact' => 'true'); $queryString = http_build_query($queryParams); $curl = curl_init(); curl_setopt($curl, CURLOPT_TIMEOUT, 7);