Hi,

I've made a little patch to the webfrontend of 3.0.7.

The problem is that Ganglia always says "Ganglia Private Cluster", for ALL private clusters in the authentication header. This way you can't let Firefox or Internet Exporer remember a different password for each cluster.

Since the Firefox password manager for example associates the password with the string in the authentication header, you will have to keep on entering your individual private cluster password again and again.

I have now changed it to include the cluster name in the authentication header. This way you can now let your browser save/remember/cache different passwords for each individual cluster.

Cheers,
- Ramon.

--
ing. R. Bastiaans

Systems Programmer / High Performance Computing & Visualisation /
SARA                 Computing and Networking Services
Kruislaan 415        PO Box 194613
1098 SJ Amsterdam    1090 GP Amsterdam
P.+31 (0)20 592 3000 F.+31 (0)20 668 3167
---
There are really only three types of people:

 Those who make things happen, those who watch things happen
 and those who say, "What happened?"

--- auth.php.org	2008-03-06 11:56:09.542153567 +0100
+++ auth.php	2008-03-06 11:54:27.261229406 +0100
@@ -30,7 +30,11 @@
 #-------------------------------------------------------------------------------
 function authenticate()
 {
-   header("WWW-authenticate: basic realm=\"Ganglia Private Cluster\"");
+   global $clustername;
+
+   $auth_header	= "WWW-authenticate: basic realm=\"Private Ganglia cluster: " . $clustername . "\"";
+
+   header( $auth_header );
    header("HTTP/1.0 401 Unauthorized");
    #print "<HTML><HEAD><META HTTP-EQUIV=refresh CONTENT=1 URL=\"../?c=\"></HEAD>";
    print "<H1>You are unauthorized to view the details of this Cluster</H1>";
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to