🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62948

Re: [attn client authors] Multiple AUTHINFOs per session

#62948
From: Russ Allbery
Date: Wed, 08 Jan 2003 05:47
34 lines
2864 bytes
Curt Welch <curt@kcwc.com> writes:

> My server happens to allow switching the user multiple times in a
> session.  The user doesn't switch when the AUTHINFO USER command
> happens, so you can send the AUTHINFO USER, then go back to doing normal
> newsrading stuff, and send the AUTHINFO PASS at any time later.  If you
> get the pass right, it switches, if you get it wrong, it disconnects.
> You can send multiple AUTHINFO USER commands as well with no effect.
> The arg is just stored away and remebered for later use when the
> AUTHINFO PASS command happens.

Do you happen to know whether anyone actually uses this capability?

We're trying to figure out how to handle this.  Requiring the server be
able to handle it looks like a bad idea.  Other options are saying that
you can't do this (in which case, the server is still free to handle it if
the client sends it anyway, of course, but the client's not supposed to),
advertising as an extension whether you can do it or not, or not
advertising and making the client just try and returning an error code if
they can't reauthenticate.

My personal inclination at the moment is to say that the results of
sending multiple AUTHINFO in the same session is undefined, meaning that
the server is free to reject it or to accept it but that the client can't
rely on it and should just open a new session if it wants to do this
portably, but running a close second would be just advertising an
extension saying whether or not you can do it.

-- 
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: <ylk7hggpko.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> <avduo3.16s.1@Heiko.Studt.dialin.t-online.de> <ylbs2s944d.fsf@windlord.stanford.edu> <20030107233154.829$xY@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylk7hggpko.fsf@windlord.stanford.edu>
Subject: Re: [attn client authors] Multiple AUTHINFOs per session
Date: Tue, 07 Jan 2003 21:47:51 -0800
From: Russ Allbery <rra@stanford.edu>
References: <avdbi3$mhk$2@puck.litech.org> <avduo3.16s.1@Heiko.Studt.dialin.t-online.de> <ylbs2s944d.fsf@windlord.stanford.edu> <20030107233154.829$xY@newsreader.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: 33
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1042004871 24740 171.64.13.23 (8 Jan 2003 05:47:51 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:WYuYMss4bXYBvjHzAJ3lk4A7h6Q=