public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
To: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Cc: help-gnats@gnu.org, Dirk Bergstrom <dirk@juniper.net>,
	Jason Molenda <jason@molenda.com>
Subject: Re: gnatsweb and cookies
Date: Thu, 21 Mar 2002 14:54:00 -0000	[thread overview]
Message-ID: <200203212251.g2LMp7K07264@marajade.sandelman.ottawa.on.ca> (raw)
In-Reply-To: Your message of "Fri, 15 Mar 2002 16:42:21 +0100." <Pine.BSF.4.44.0203151639370.21128-100000@naos.dbai.tuwien.ac.at>


>>>>> "Gerald" == Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> 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

      parent reply	other threads:[~2002-03-21 22:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-12 11:34 Michael Richardson
2002-03-12 13:00 ` Dirk Bergstrom
2002-03-15  8:20   ` Gerald Pfeifer
2002-03-15  9:04     ` Jason Molenda
2002-03-21 14:54     ` Michael Richardson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203212251.g2LMp7K07264@marajade.sandelman.ottawa.on.ca \
    --to=mcr@sandelman.ottawa.on.ca \
    --cc=dirk@juniper.net \
    --cc=help-gnats@gnu.org \
    --cc=jason@molenda.com \
    --cc=pfeifer@dbai.tuwien.ac.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).