From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7270 invoked from network); 21 Mar 2002 22:54:38 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 21 Mar 2002 22:54:38 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16oBRc-0005b9-00; Thu, 21 Mar 2002 17:54:04 -0500 Received: from cyphermail.sandelman.ottawa.on.ca ([192.139.46.78] helo=noxmail.sandelman.ottawa.on.ca) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16oBQg-0005Wi-00 for ; Thu, 21 Mar 2002 17:53:06 -0500 Received: from marajade.sandelman.ottawa.on.ca (ip019.ipsec.ietf53.cw.net [166.63.179.19]) by noxmail.sandelman.ottawa.on.ca (8.11.6/8.11.6) with ESMTP id g2LMqbS17150 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Thu, 21 Mar 2002 17:52:40 -0500 (EST) Received: from marajade.sandelman.ottawa.on.ca (localhost [[UNIX: localhost]]) by marajade.sandelman.ottawa.on.ca (8.11.6/8.11.0) with ESMTP id g2LMp7K07264; Thu, 21 Mar 2002 16:51:09 -0600 (CST) Message-Id: <200203212251.g2LMp7K07264@marajade.sandelman.ottawa.on.ca> To: Gerald Pfeifer cc: help-gnats@gnu.org, Dirk Bergstrom , Jason Molenda Subject: Re: gnatsweb and cookies In-reply-to: Your message of "Fri, 15 Mar 2002 16:42:21 +0100." Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Michael Richardson 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: Thu, 21 Mar 2002 14:54:00 -0000 X-SW-Source: 2002-q1/txt/msg00137.txt.bz2 >>>>> "Gerald" == Gerald Pfeifer writes: Gerald> Actually, it seems surprisingly simple. ;-) Below you'll find a Gerald> patch due Gerald> to Jason Molenda (CC:ed) which we have been using on gcc.gnu.org; Gerald> some- Gerald> thing similiar for use with current GNATS/gnatsweb should be Gerald> relatively Gerald> simple, I guess. I had to move stuff a bit, and I had to force the database if not set (I think you have a patch above to do that), resulting in. Note that this actually breaks all logins - the logout button would remove the cookies, but that puts me back to the view stuff. That's okay, I wanted read only access anyway. adams-[/usr/local/src/gnatsweb] mcr 1024 %cvs diff -u gnatsweb.pl Index: gnatsweb.pl =================================================================== RCS file: /cvsroot/gnatsweb/gnatsweb/gnatsweb.pl,v retrieving revision 1.93 diff -u -r1.93 gnatsweb.pl --- gnatsweb.pl 23 Feb 2002 04:11:13 -0000 1.93 +++ gnatsweb.pl 21 Mar 2002 22:49:18 -0000 @@ -4129,6 +4129,17 @@ ### Cookie-related code must happen before we print the HTML header. init_prefs(); + if(!$global_prefs{'database'}) { + $global_prefs{'database'}="freeswan"; + } + + #GCC-LOCAL begin: No username/pass provided? Default to guest/guest + if (!$db_prefs{'user'} || !$db_prefs{'password'}) { + $db_prefs{'user'} = "view"; + $db_prefs{'password'} = "view"; + } + #GCC-LOCAL end. + if(!$global_prefs{'database'} || !$db_prefs{'user'} || !$db_prefs{'password'}) { @@ -4138,6 +4149,7 @@ login_page($q->self_url()); exit(); } + # Big old switch to handle commands. if($cmd eq 'store query') ] ON HUMILITY: to err is human. To moo, bovine. | firewalls [ ] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[ ] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[ ] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [ _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats