diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index bad1af65ef9498d216d240a1f22eea6b71338e12..d2e7a35e60dc7f8debe7326be9c2da27c412d2ad 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"];