Should we try to aim for an "official" 3.0.2 release with at least the various 
PHP fixes checked in?
 
Matt is quite busy with work and all, and I don't mind doing a bit of 
co-ordination with releases (and personally would like to see a bugfix release 
of Ganglia).
 
Cheers,
 
Bernard

________________________________

From: [EMAIL PROTECTED] on behalf of michael chang
Sent: Sat 10/09/2005 10:51
To: [EMAIL PROTECTED]
Cc: Ramon Bastiaans; Ganglia Developers
Subject: Re: [Ganglia-developers] [patch] private cluster authenticate fix



On 9/10/05, Martin Knoblauch <[EMAIL PROTECTED]> wrote:
>  comments on the patch? My php is not good enough to evaluate the
> change, but I am inclined to commit it if I get one or more ACKs.

Does it break PHP3?  If not, then I'd presume it looks safe.  If it
does, then we'd have to go as far as a auth_php3.php (or auth.php3)
versus auth_php4.php (or auth.php). Then we'd have to detect what PHP
we're running on.

Maybe I'll look at working with it later.

Just as another side note, the PHP scripts generate code that's
incompatable with W3C's HTML 4.0 standard; links contain the
uri.php?name=value&name=value... when apparently it's supposed to be
uri.php?name=value&amp;name=value... -- in Firefox and MSIE, this
doesn't break behaviour, I don't know whether or not it causes
problems for older browsers (e.g. Lynx/Links etc.)

> --- Ramon Bastiaans <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
> >
> > I noticed that HTTP authentication was not working in auth.php. Since
> >
> > php4 the variables changed for this to work.
> > I created a little patch that will make it work again.
> >
> > Kind regards,
> > - Ramon.
> >
> > --
> > .--------------------------------------------.
> > | ing. Ramon Bastiaans                       |
> > | HPC - Systems Programmer                   |
> > |--------------------------------------------|
> > | SARA - Computing and Networking Services   |
> > | Kruislaan 415           PO Box 194613      |
> > | 1098 SJ Amsterdam       1090 GP Amsterdam  |
> > |--------------------------------------------|
> > | Mail:  bastiaans ( a t ) sara ( d o t ) nl |
> > | Web:   http://www.sara.nl/                 |
> > | Phone: +31 (0)20 592 80 19                 |
> > | Fax:   +31 (0)20 668 31 67                 |
> > `--------------------------------------------'
> >
> > > --- ganglia-3.0.1/web/auth.php      2005-02-02 19:24:14.000000000 +0100
> > +++ ./auth.php        2005-08-30 10:07:47.182962576 +0200
> > @@ -43,19 +43,20 @@
> >
> >
> #-------------------------------------------------------------------------------
> >  function checkprivate()
> >  {
> > -   global $clustername, $context, $PHP_AUTH_PW;
> > +   global $clustername, $context;
> > +
> >     # Allow the Meta context page.
> >     if ($context=="meta") { return; }
> >
> >     $private=embarrassed();
> >     if ($private[$clustername]) {
> >        #echo "The password for $clustername is
> > $private[$clustername]<br>";
> > -      if (empty($PHP_AUTH_PW)) {
> > +      if (empty($_SERVER['PHP_AUTH_PW'])) {
> >        authenticate();
> >        }
> >        else {
> >        # Check password (in md5 format). Username does not matter.
> > -      if (md5($PHP_AUTH_PW) != $private[$clustername]) {
> > +      if (md5($_SERVER['PHP_AUTH_PW']) != $private[$clustername]) {
> >           authenticate();
> >        }
> >        }
> > @@ -68,17 +69,17 @@
> >  # The control room is always embarrassed.
> >  function checkcontrol()
> >  {
> > -   global $context, $PHP_AUTH_PW;
> > +   global $context;
> >
> >     if ($context != "control") { return; }
> >
> > -   if (empty($PHP_AUTH_PW)) {
> > +   if (empty($_SERVER['PHP_AUTH_PW'])) {
> >        authenticate();
> >     }
> >     else {
> >        #echo "You entered password ". md5($PHP_AUTH_PW) ."
> > ($PHP_AUTH_PW)<br>";
> >        $private=embarrassed();
> > -      if (md5($PHP_AUTH_PW) != $private["controlroom"]) {
> > +      if (md5($_SERVER['PHP_AUTH_PW']) != $private["controlroom"]) {
> >        authenticate();
> >        }
> >     }
> >
>
>
> ------------------------------------------------------
> Martin Knoblauch
> email: k n o b i AT knobisoft DOT de
> www:   http://www.knobisoft.de
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Ganglia-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
>


--
~Mike
 - Just my two cents
 - No man is an island, and no man is unable.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Reply via email to