Add support for HTTP_REMOTE_USER variable for user authentication
This commit is contained in:
parent
6da576dbe4
commit
564a24fd78
|
@ -42,6 +42,7 @@ class Auth_Remote extends Plugin implements IAuthModule {
|
||||||
*/
|
*/
|
||||||
function authenticate($login, $password) {
|
function authenticate($login, $password) {
|
||||||
$try_login = $_SERVER["REMOTE_USER"];
|
$try_login = $_SERVER["REMOTE_USER"];
|
||||||
|
if (!$try_login) $try_login = $_SERVER["HTTP_REMOTE_USER"];
|
||||||
|
|
||||||
// php-cgi
|
// php-cgi
|
||||||
if (!$try_login) $try_login = $_SERVER["REDIRECT_REMOTE_USER"];
|
if (!$try_login) $try_login = $_SERVER["REDIRECT_REMOTE_USER"];
|
||||||
|
|
Loading…
Reference in New Issue