Article View: news.software.nntp
Article #62935Re: [attn client authors] Multiple AUTHINFOs per session
From: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 01:47
Date: Wed, 08 Jan 2003 01:47
67 lines
3778 bytes
3778 bytes
In article <ylvg10h7bu.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
>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,
>> 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.
This was one of the funny implications I mentioned on ietf-nntp.
If we forbid multiple authentication steps, then a command which
originally was 480 could become 502 after authentication.
>Hm. I wonder what INN does there now.
I was going to test this -- but the only way I can get INN to
return 480 is if readers.conf assigns no identity to the incoming
connection. After any resolver, authenticator, or default: line
assigns an identity, we get "411 no such group" for any group not
currently visible, regardless of whether authentication would
affect the response.
(I was surprised by that.)
>> 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.
Well, the "not the original intent" stuff is entirely gone.
There's a very clear implication that the client may volunteer
("Servers are not required to accept authentication
information that is volunteered by the client" is an excerpt from
the current pre-draft), although nothing really explicit. I see
no reason not to make it completely unambiguous; will revise, and
also make explicit mention to 2980.
Hmm, this should probably have "Obseletes: 2980" at the top, I
guess.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<avg001$ead$3@puck.litech.org>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!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<avdbi3$mhk$2@puck.litech.org> <1fofjwh.11s517o1oly3f0N%pmrobinson@mail.com> <ylvg10h7bu.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <avg001$ead$3@puck.litech.org> Subject: Re: [attn client authors] Multiple AUTHINFOs per session Date: Wed, 08 Jan 2003 01:47:45 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <avdbi3$mhk$2@puck.litech.org> <1fofjwh.11s517o1oly3f0N%pmrobinson@mail.com> <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!news.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 66 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1041990465 14669 66.218.0.75 (8 Jan 2003 01:47:45 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Wed, 8 Jan 2003 01:47:45 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)