🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79384

Re: 200 or 201 at initial connection?

#79384
From: Julien ÉLIE
Date: Sat, 30 Aug 2008 21:02
80 lines
3627 bytes
Hi Russ,

>> * the reader can post right now in at least one group
>>    -> 200
>>    -> POST in CAPABILITIES
>>
>> * the reader cannot post right now but can authenticate and have posting
>>  access to at least one group
>>    -> 200
>>    -> POST *not* in CAPABILITIES
>>
>> * the reader cannot post right now and cannot authenticate or if authenticated
>>  will still not have posting access
>>    -> 201
>>    -> POST *not* in CAPABILITIES
>>
>> Am I right?
>
> Correct.

That's great.  It is now pretty clear thanks to you.



> CAPABILITIES has to be much more accurate than the 200/201.  It should
> reflect the current state, including STARTTLS, authentication, MODE
> READER, and so forth.

As for the implementation, it can soon become very difficult...
Just a few examples:

auth "users" {
    hosts: "*"
    auth: "ckpasswd -f /home/news/etc/users"
}

access "users" {
    newsgroups: "*"
    access: RPA
}

With an *empty* users file.  The same goes for ldap, Kerberos...
The server will send 200 whereas in fact the client will never
be able to authenticate.


Another tricky one:

access "users" {
    post: "*abc*"
    access: RPAIN
}

Suppose that we have no group containing "abc" (you can also try
post: "!*" if you prefer)...  We also have to check whether local
posts are allowed in groups by the way (for the "n" flag in active).
Note that it is amusing to use such an access group -> the client
connects and receives 200 with READER, POST, IHAVE and NEWNEWS.
Nevertheless, almost everything is denied.


May I assume it is useless to check such degenerated cases?
Anyway, the first one cannot be checked.
The second one, it can but I do not think it is worth doing that.

Therefore, it is impossible to properly implement the right anwser codes.

Can we just do the best we can with what the news administrator
sets up?  (implicitly assuming that for instance if post: is used,
then at least one group exists in which the user will be able to post)


(For those who wonder whether I am driving insane with such remarks,
well I hope not!)

-- 
Julien ÉLIE

« Ta vie ne tient qu'à un fil, Téléféric ! » (Astérix) 
Technical Details
Message-ID: <g9cchr$b66$1@news.trigofacile.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
References: <g971md$r4v$1@news.trigofacile.com> <877ia0k58u.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <g9cchr$b66$1@news.trigofacile.com>
Subject: Re: 200 or 201 at initial connection?
Date: Sat, 30 Aug 2008 23:02:48 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <g971md$r4v$1@news.trigofacile.com> <877ia0k58u.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 80
NNTP-Posting-Host: aaubervilliers-151-1-89-50.w83-199.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1220130172 11462 83.199.208.50 (30 Aug 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 30 Aug 2008 21:02:52 +0000 (UTC)
In-Reply-To: <877ia0k58u.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049