Gnus development mailing list
 help / color / mirror / Atom feed
From: "Edward J. Sabol" <sabol@alderaan.gsfc.nasa.gov>
Subject: Re: feedback on AUTHINFO in qgnus-0.27
Date: Thu, 19 Feb 1998 10:55:16 -0500	[thread overview]
Message-ID: <199802191555.KAA18753@alderaan.gsfc.nasa.gov> (raw)
In-Reply-To: <whafbqsjjk.fsf@norne.oslo.metis.no> (message from Steinar Bang on 17 Feb 1998 09:49:19 +0100)

Excerpts from mail: (17-Feb-98) Re: feedback on AUTHINFO in qgnus-0.27 by Steinar Bang
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
Lars> The new approach is to only send authinfo when challenged.  If you
Lars> want to force sending authinfo for some servers, you should put the
Lars> authinfo function into the server-opened hook for those servers. 

Steinar Bang <sb@metis.no> writes:
SB> I prefer an approach where you always check ~/.autinforc (or
SB> whatever), for the server, and send authinfo whether challenged or
SB> not. 

SB> Ie. the following behaviour:
SB> 1. if authinfo entry for this server found, send it whether
SB>    challenged or not, prompt for username and password if missing 
SB> 2. if no authinfo entry found, and no challenge is issued don't send
SB>    authinfo 
SB> 3. If challenged look for authinfo for the server in the
SB>    ~/.authinforc, and prompt for missing username and password, the
SB>    way it presumably does

Lars> Why should 3) look into .authinforc when 1) already has established
Lars> that it doesn't exist there?

Lars> Anyways, the problem is to decide which servers to send authinfo to
Lars> automatically.  I say we add some token to .authinforc -- "force",
Lars> perhaps?  Or (to keep compatibility with .netrc), have the user name
Lars> be of a certain form?  "login force:larsi" to say to nntp that it
Lars> should always send authinfo for this server?  

No, please don't do that. It's completely unnecessary and deviates from the
intentions of the .netrc file format. Sematically overloading a syntax is
almost never the correct way of doing things. If I may, let me reorder and
rewrite Steinar's procedure of how to handle this:

1. If challenged by some server, look for authinfo for that server in the
   ~/.authinforc file.
   a. If there is no ~/.authinforc file or if there is but there isn't an
      entry for the current server in it, prompt for username and password
      and then send the authentication information to the server.
   b. If there is an entry for the current server in ~/.authinforc but it
      lacks a username and password, prompt the user to enter them
      and then send the authentication information to the server.
   c. If there is an entry for the current server in ~/.authinforc and a
      username is specified but it lacks the associated password, prompt the
      user for the password and then send the authentication information to
      the server.
2. If no challenge is issued by the server, look for authinfo for that server
   in the ~/.authinforc file anyway.
   a. If there is no entry in the ~/.authinforc file for the current server
      or if no ~/.authinforc file exists, don't send any authentication
      information to the server.
   b. If there is an entry in the ~/.authinforc file for the current server
      but it lacks a username and password, prompt the user to enter them
      and then send the authentication information to the server.
   c. If there is an entry for the current server in ~/.authinforc and a
      username is specified but it lacks the associated password, prompt the
      user for the password and then send the authentication information to
      the server.

It sounds more complicated than it really is. Basically, if there's an entry
for the server in ~/.authinforc, then send authinfo for that server whether
challenged or not.

By the way, this is almost exactly how FTP uses the username and password
information in the ~/.netrc file.

Later,
Ed


  parent reply	other threads:[~1998-02-19 15:55 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-13 18:51 AUTHINFO Lars Magne Ingebrigtsen
1998-02-14  6:55 ` AUTHINFO Jason R Mastaler
1998-02-14 16:01   ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-14 17:03     ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-14 19:23       ` AUTHINFO Jason R Mastaler
1998-02-14 19:31         ` AUTHINFO Hrvoje Niksic
1998-02-14 19:42           ` AUTHINFO Jason R Mastaler
1998-02-14 20:38             ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-14 23:30               ` AUTHINFO Jason R Mastaler
1998-02-15  5:28                 ` AUTHINFO Felix Lee
1998-02-15 13:32                 ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-15 13:48                   ` AUTHINFO Simon Josefsson
1998-02-15 14:49                     ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-15 18:15                       ` AUTHINFO Simon Josefsson
1998-02-15 22:05                         ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-16 10:36                           ` AUTHINFO Per Abrahamsen
1998-02-16 10:46                             ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-16 11:25                               ` AUTHINFO Per Abrahamsen
1998-02-16 18:53                                 ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-19  2:21                                   ` AUTHINFO Joev Dubach
1998-02-19  4:55                                     ` AUTHINFO Lloyd Zusman
1998-02-19 14:16                                       ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-19 15:26                                   ` AUTHINFO Edward J. Sabol
1998-02-15 14:32                   ` AUTHINFO Hrvoje Niksic
1998-02-15 17:19                     ` AUTHINFO Lloyd Zusman
1998-02-15 17:29                       ` AUTHINFO Hrvoje Niksic
1998-02-15 19:58                         ` AUTHINFO Andy Eskilsson
1998-02-15 22:04                       ` AUTHINFO Lars Magne Ingebrigtsen
1998-02-15 19:34                     ` AUTHINFO Jason R Mastaler
1998-02-16  8:13                     ` AUTHINFO Steinar Bang
1998-02-15 19:23                   ` AUTHINFO Jason R Mastaler
1998-02-16 17:16                   ` AUTHINFO Justin Sheehy
1998-02-14 19:22     ` AUTHINFO Jason R Mastaler
1998-02-16 16:27     ` feedback on AUTHINFO in qgnus-0.27 Steinar Bang
1998-02-16 18:58       ` Lars Magne Ingebrigtsen
1998-02-17  7:48         ` Steinar Bang
1998-02-17  9:03           ` Steinar Bang
1998-02-18 12:15           ` Lars Magne Ingebrigtsen
1998-02-17  8:41         ` Steinar Bang
1998-02-17  8:49           ` Steinar Bang
1998-02-18 12:19             ` Lars Magne Ingebrigtsen
1998-02-18 16:44               ` Steinar Bang
1998-02-19 15:55             ` Edward J. Sabol [this message]
1998-02-20  2:31               ` Lars Magne Ingebrigtsen
1998-02-20  8:16                 ` Steinar Bang
1998-02-20 10:36                   ` Lars Magne Ingebrigtsen
1998-02-20 14:27                     ` Steinar Bang
1998-02-20 21:39                       ` Lars Magne Ingebrigtsen
1998-02-20 22:34                       ` Aaron M. Ucko
1998-02-20 21:28                 ` Edward J. Sabol
1998-02-20 23:10                   ` Lars Magne Ingebrigtsen
1998-02-20 23:26                     ` Edward J. Sabol
1998-02-21  0:14                       ` Lars Magne Ingebrigtsen
1998-02-23 18:06                         ` Edward J. Sabol
1998-02-27 11:56                           ` Lars Magne Ingebrigtsen
1998-02-27 15:58                             ` Edward J. Sabol
1998-02-28  5:45                               ` Lars Magne Ingebrigtsen
1998-03-04 19:38                               ` Hallvard B Furuseth
1998-02-28  4:27                             ` Jason R Mastaler
1998-02-28  5:48                               ` Lars Magne Ingebrigtsen

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=199802191555.KAA18753@alderaan.gsfc.nasa.gov \
    --to=sabol@alderaan.gsfc.nasa.gov \
    /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 NNTP newsgroup(s).