auth_remote: add REDIRECT_ version of REMOTE_USER for php-cgi configured through mod_actions (closes #597)

This commit is contained in:
Andrew Dolgov 2013-03-19 13:39:26 +04:00
parent 4af54c7142
commit 23923ca726

View file

@ -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";