🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44537

Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)

#44537
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
86 lines
4517 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> It would really be nice to be able to distinguish between "already
> authenticated" and "need to authenticate" so that clients don't have to
> keep additional state and be prepared to send authentication information
> when a command is rejected.

The natural way to do it would be with a 4xx code, but I just don't think
we have that option at this point. To many clients I suspect would
interpret any code besides 200 or 201 here as an error.

I've had thoughts that maybe a command which lists all the currently
"useable" commands would be useful for cases like this (and for feeder vs
reader mode for example). Something like the new LIST EXTENSIONS, but it
would instead be LIST COMMANDS (HELP is almost this in an informal way). It
would be required to list only those commands which are currently available
for the given authentication level.

But then the job of a reader trying to figure out if it "should"
authtenticate given that list is not an easy one.  Which command do you
look for?  What if post worked for unauthenticated users but only for a
local group?

And to more complex issue of a command that trys to check "all" permissions
can't just be command line based.  For example, I'm looking at adding
permissions to what control a users ability to post control messages
other than cancles.  And that can't be indicated by just listing commands.
You have to go to the more abstract concepts like the LIST EXTENSIONS.

I'm guessing that if we want a client to know that it MUST authenticate,
that we will have to add a new command that the client will use
to ask the server that question.

Maybe a simple and logical place to put that is in the AUTHINFO command.
AUTHINFO CHECK returns 480 Must authenticate if the client currently
has "no" permissions.  Maybe simple feed/read/post permissions should
be included here?

So, for a session which must be authenticated before anything else
can happen:

AUTHINFO CHECK
480 Authentication required

Or for a session which currently has some permissions, in this
example read and post:

AUTHINFO CHECK
200 RP

And of course for as server which doesn't implement AUTHINFO CHECK:

AUTHINFO CHECK
5xx

And then of course, all this gets put off until someone finds a
solution to the AUTHINFO standard.

> > And I think it oppens the issue for some conditions where the server
> > won't be able to figure out which they should send.  For example, if
> > the server normally controls access by referencing a database, but the
> > databse is currently down, does it return 400 responses to everyone
> > even though for some, the problem isn't temporary, or 500 even though
> > for some, the problem isn't perminate.
>
> Every other protocol I'm aware of assumes temporary in this sort of case.
>
> I think distinguising between temporary and permanent errors where
> possible is a good idea, but I guess I don't feel that overly strong
> about it.

Yeah me too.  If it was my decision, i'd leave out the temporay option
here, but I can't really argue against it if someone feels it's needed.
But I will strongly suggest that we not put it in just because it "seems"
like a good idea.

And I will insist that the MUST CLOSE connection after response be included
for both the 400 and 502 codes though - or at least that the behavior is
not optional.  Either it always does, or or never does.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000227145137.391$50@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!not-for-mail
References: <87putjd35j.fsf@erlenstar.demon.co.uk> <20000227011728.663$9r@newsreader.com> <ylya87yug9.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20000227145137.391$50@newsreader.com>
Subject: Re: [NNTP Draft] 7. The GREETING Step (and MODE READER)
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87putjd35j.fsf@erlenstar.demon.co.uk> <20000227011728.663$9r@newsreader.com> <ylya87yug9.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!not-for-mail
X-Deja-AN: 590555894
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp