🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62931

Re: [attn client authors] Multiple AUTHINFOs per session

#62931
From: Russ Allbery
Date: Tue, 07 Jan 2003 23:24
41 lines
2757 bytes
Peter Robinson <pmrobinson@mail.com> writes:

> On a related note:  I have got it into my head (I'm not sure from where)
> that the server is allowed to ask for authentication at any time,

Yes.

> and can even do so more than once in a single session.

Now that's a rather interesting point that I hadn't thought about.

If the user has already authenticated, and then tries to read a newsgroup
that's only available to authenticated users but isn't available with the
user's current authentication, the server needs to *not* send a 480
response.  Hm.  I wonder what INN does there now.

> Also, RFC 2980 says

> } Clients must provide authentication when requested by the server.  It
> } is possible that some implementations will accept authentication
> } information at the beginning of a session, but this was not the
> } original intent of the specification.

> So clients shouldn't volunteer authentication information without being
> asked.  Is this current best practice in, err, practice?

No, not really, because unless you authenticate up front, a bunch of
newsgroups may be missing from LIST ACTIVE and other commands may not give
you what you expect.  You have to authenticate right up front to be sure
that you're seeing all of the data that you can see.

Hm.  That's interesting; I didn't realize that RFC 2980 says that.  That
should probably be explicitly changed (with reference to RFC 2980) in any
future standardization of AUTHINFO.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <ylvg10h7bu.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <avdbi3$mhk$2@puck.litech.org> <1fofjwh.11s517o1oly3f0N%pmrobinson@mail.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylvg10h7bu.fsf@windlord.stanford.edu>
Subject: Re: [attn client authors] Multiple AUTHINFOs per session
Date: Tue, 07 Jan 2003 15:24:21 -0800
From: Russ Allbery <rra@stanford.edu>
References: <avdbi3$mhk$2@puck.litech.org> <1fofjwh.11s517o1oly3f0N%pmrobinson@mail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 40
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1041981861 11894 171.64.13.23 (7 Jan 2003 23:24:21 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:SXclNNs4v7x2+pYg119xULLwT7o=