🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66880

Re: New NNTP draft -- Section 5

#66880
From: Andrew - Supernews
Date: Mon, 20 Oct 2003 18:34
50 lines
3361 bytes
In article <874qy3hnhl.fsf_-_@windlord.stanford.edu>, Russ Allbery wrote:
> 5.1 Initial Connection
> 
> 5.1.1 Usage
> 
>    Responses
>       200   Service available, posting allowed
>       201   Service available, posting prohibited
>       400   Service temporarily unavailable [1]
>       502   Service permanently unavailable [1]
> 
>       These are the only valid response codes for the initial greeting;
>       the server MUST not return any other generic response code.
> 
>    [1] Following a 400 or 502 response the server MUST immediately close
>       the connection.
> 
> 5.1.2 Description
> 
>    There is no command presented by the client upon initial connection
>    to the server. The server MUST present an appropriate response code
>    as a greeting to the client. This response informs the client whether
>    service is available and whether the client is permitted to post.
> 
>    If the server will accept further commands from the client including
>    POST, the server MUST present a 200 greeting code. If the server will
>    accept further commands from the client, but it is not authorized to
>    post articles using the POST command, the server MUST present a 201
>    greeting code.
> 
>    Otherwise the server MUST present a 400 or 502 greeting code and then
>    immediately close the connection. 502 MUST be used if the client is
>    not permitted under any circumstances to interact with the server and
>    400 otherwise.

Current practice here (and in a number of other implementations, but not all)
is to return 502 if the connection is not allowed because a limit, such as
maximum connecions from a single IP or user, or customer domain, has been
reached.

The above implies that 400 is the correct code for this, but in general that's
probably not going to happen consistently because of the number of cases where
a generic authentication interface with only a "yes/no" response is involved.
i.e. the limit is being tracked in an authentication subsystem independent of
the server itself, and therefore there is no way to return distinguished
response codes based on the reason for the rejection.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <slrnbp8am9.2sl5.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrnbp8am9.2sl5.andrew+nonews@trinity.supernews.net>
Subject: Re: New NNTP draft -- Section 5
Date: Mon, 20 Oct 2003 18:34:51 -0000
From: Andrew - Supernews <andrew+nonews@supernews.com>
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.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.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://www.supernews.com - all your nntp are belong to us
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.7.4 (FreeBSD)
X-Complaints-To: abuse@supernews.com
Lines: 50