summaryrefslogtreecommitdiff
path: root/plugins/auth_remote
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-19 13:39:26 +0400
committerAndrew Dolgov <[email protected]>2013-03-19 13:39:26 +0400
commit23923ca726c0d93db6dd81eb8d94d6b5f04310eb (patch)
tree1eb10a5405ae9ffa5d9451362984bd53b7f7a852 /plugins/auth_remote
parent4af54c714234696a5b0bbd494e275d687999c998 (diff)
auth_remote: add REDIRECT_ version of REMOTE_USER for php-cgi configured through mod_actions (closes #597)
Diffstat (limited to 'plugins/auth_remote')
-rw-r--r--plugins/auth_remote/init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index 65f188b8f..7c8d835f8 100644
--- a/plugins/auth_remote/init.php
+++ b/plugins/auth_remote/init.php
@@ -40,6 +40,9 @@ class Auth_Remote extends Plugin implements IAuthModule {
function authenticate($login, $password) {
$try_login = db_escape_string($_SERVER["REMOTE_USER"]);
+ // php-cgi
+ if (!$try_login) $try_login = db_escape_string($_SERVER["REDIRECT_REMOTE_USER"]);
+
if (!$try_login) $try_login = $this->get_login_by_ssl_certificate();
# if (!$try_login) $try_login = "test_qqq";