diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-17 05:00:31 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-17 05:00:31 +0000 |
commit | 063f8745f9c47f2f230b6a62b698cece555b752e (patch) | |
tree | 7d84a985f378971f4db546bb1058980b3e344158 /etc/inc/auth.inc | |
parent | cd0545aa090470c90a3912c238d013b3c74f7c0a (diff) | |
download | pfsense-063f8745f9c47f2f230b6a62b698cece555b752e.zip pfsense-063f8745f9c47f2f230b6a62b698cece555b752e.tar.gz |
If there's a PHP_AUTH_* copy it over to AUTH_* (mini sets AUTH_*, lighttpd sets PHP_AUTH_*)
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index e86e25f..a13b815 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -52,6 +52,10 @@ function passwd_backed_basic_auth() { for($attempt = 0; $attempt <= 3; basic_auth_prompt()){ $attempt++; /* Check for AUTH_USER */ + if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] <> "") { + $HTTP_SERVER_VARS['AUTH_USER'] = $HTTP_SERVER_VARS['PHP_AUTH_USER']; + $HTTP_SERVER_VARS['AUTH_PW'] = $HTTP_SERVER_VARS['PHP_AUTH_PW']; + } if (!isset($HTTP_SERVER_VARS['AUTH_USER'])) continue; @@ -91,6 +95,10 @@ function htpasswd_backed_basic_auth() { for($attempt = 0; $attempt <= 3; basic_auth_prompt()){ $attempt++; /* Check for AUTH_USER */ + if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] <> "") { + $HTTP_SERVER_VARS['AUTH_USER'] = $HTTP_SERVER_VARS['PHP_AUTH_USER']; + $HTTP_SERVER_VARS['AUTH_PW'] = $HTTP_SERVER_VARS['PHP_AUTH_PW']; + } if (!isset($HTTP_SERVER_VARS['AUTH_USER'])) continue; @@ -118,4 +126,4 @@ function htpasswd_backed_basic_auth() { return false; } -?>
\ No newline at end of file +?> |