From 564a24fd7811ea4e4bebe68f5e3b4ed3828b5330 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 21 Dec 2020 16:56:39 +0000 Subject: [PATCH] Add support for HTTP_REMOTE_USER variable for user authentication --- plugins/auth_remote/init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index bad1af65e..d2e7a35e6 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -42,6 +42,7 @@ class Auth_Remote extends Plugin implements IAuthModule { */ function authenticate($login, $password) { $try_login = $_SERVER["REMOTE_USER"]; + if (!$try_login) $try_login = $_SERVER["HTTP_REMOTE_USER"]; // php-cgi if (!$try_login) $try_login = $_SERVER["REDIRECT_REMOTE_USER"];