From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3130 invoked from network); 15 Mar 2002 17:04:28 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 15 Mar 2002 17:04:28 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lv7t-0005Sl-00; Fri, 15 Mar 2002 12:04:21 -0500 Received: from sj1-3-4-16.securesites.net ([192.220.127.209]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16lv6P-0005FO-00 for ; Fri, 15 Mar 2002 12:02:49 -0500 Received: (qmail 14728 invoked by uid 19025); 15 Mar 2002 17:02:47 -0000 From: Jason Molenda To: Gerald Pfeifer Cc: help-gnats@gnu.org, Dirk Bergstrom , Michael Richardson Subject: Re: gnatsweb and cookies Message-ID: <20020315090247.A14189@molenda.com> References: <3C8E6B3B.1020605@juniper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from pfeifer@dbai.tuwien.ac.at on Fri, Mar 15, 2002 at 04:42:21PM +0100 Sender: help-gnats-admin@gnu.org Errors-To: help-gnats-admin@gnu.org X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion about GNU GNATS List-Archive: Date: Fri, 15 Mar 2002 09:04:00 -0000 X-SW-Source: 2002-q1/txt/msg00130.txt.bz2 Yeah, this approach has worked pretty well. If the client doesn't provide an existing cookie, we assume they're a read-only user (guest/guest on this system) by default. If they want to authenticate, they have to manually go to the Login screen. Given that most read/write users will only need to do this one time, it is the appropriate burden of effort. Because new/non-cookie-accepting users aren't run through the Login screen the default, they can get by without cookies. I wrote this little patch a while back and I may be mis-remembering some of the details of its effects, but that's the gist of it. Jason On Fri, Mar 15, 2002 at 04:42:21PM +0100, Gerald Pfeifer wrote: > Actually, it seems surprisingly simple. ;-) Below you'll find a patch due > to Jason Molenda (CC:ed) which we have been using on gcc.gnu.org; some- > thing similiar for use with current GNATS/gnatsweb should be relatively > simple, I guess. > > Gerald > > Index: gnatsweb.pl > =================================================================== > RCS file: /cvs/gcc/wwwdocs/cgi-bin/gnatsweb.pl,v > retrieving revision 1.49 > retrieving revision 1.50 > diff -u -3 -p -r1.49 -r1.50 > --- gnatsweb.pl 2001/12/18 21:11:00 1.49 > +++ gnatsweb.pl 2001/12/19 07:22:34 1.50 > @@ -3501,6 +3501,13 @@ sub main > $global_prefs{'database'}="gcc"; > #GCC-LOCAL end. > > + #GCC-LOCAL begin: No username/pass provided? Default to guest/guest > + if (!$db_prefs{'user'} || !$db_prefs{'password'}) { > + $db_prefs{'user'} = "guest"; > + $db_prefs{'password'} = "guest"; > + } > + #GCC-LOCAL end. > + > # Big old switch to handle commands. > if($cmd eq 'store query') > { _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats