mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 14:44:14 +09:00
0001211: Allow use of "REMOTE_USER" if "PHP_AUTH_USER" is not set for authenication
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4683 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
fbe3efe95e
commit
ea1a36b6e1
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -35,7 +35,9 @@ if (read_config_option("auth_method") == "2") {
|
||||
$action = "login";
|
||||
if (isset($_SERVER["PHP_AUTH_USER"])) {
|
||||
$username = str_replace("\\", "\\\\", $_SERVER["PHP_AUTH_USER"]);
|
||||
} else {
|
||||
}elseif (isset($_SERVER["REMOTE_USER"])) {
|
||||
$username = str_replace("\\", "\\\\", $_SERVER["REMOTE_USER"]);
|
||||
}else{
|
||||
/* No user - Bad juju! */
|
||||
$username = "";
|
||||
cacti_log("ERROR: No username passed with Web Basic Authentication enabled.", false, "AUTH");
|
||||
|
||||
@@ -13,6 +13,7 @@ Cacti CHANGELOG
|
||||
-bug#0001191: Faulty IP address validation by ping.php script
|
||||
-bug#0001204: since upgrade to 0.87b the hosts with ip address with 255 are down and have no datas
|
||||
-bug#0001206: wrong "include" statements replaced by "include_once" (was: Graphs are not Zoom-able)
|
||||
-bug#0001211: Allow use of "REMOTE_USER" if "PHP_AUTH_USER" is not set for authenication
|
||||
-bug#0001213: Template Copy does not hash copied template_items
|
||||
-bug#0001215: Impossible to define a none availability with the client cli/add_device.php
|
||||
-bug#0001216: CSV Export for zoomed graph, results in Validation error
|
||||
|
||||
Reference in new issue
Block a user