Article View: news.software.nntp
Article #79342Re: About 480 and 502 codes
From: Russ Allbery
Date: Mon, 25 Aug 2008 01:36
Date: Mon, 25 Aug 2008 01:36
39 lines
2543 bytes
2543 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> 3.2.1.1. Examples (RFC 3977)
>
> Example of an attempt to access a facility not available to this
> connection:
>
> [C] MODE READER
> [S] 200 Reader mode, posting permitted
> [C] IHAVE <i.am.an.article.you.will.want@example.com>
> [S] 500 Permission denied
>
> Why "Permission denied"? This facility is unknown (error 500) so it
> should return "Unknown command". Otherwise, for a "Permission denied"
> answer, it is 502.
My guess is that the return code was changed without changing the text at
some point in the editing process. The return code is what matters.
> Example of an attempt to access a facility requiring authentication:
>
> [C] GROUP secret.group
> [S] 480 Permission denied
>
> Well, it is not trivial to know when it is 480 and when it is 502
> because an already authenticated person can re-authenticate so the
> newsgroup may be accessible without having to reconnect (the meaning of
> 502). Better send 480 then :-P
Unless you can tell that the group won't be accessible without
reconnecting, yeah. nnrpd can in some cases know that (if, for example,
there are no auth blocks that permit AUTHINFO authentication, so the
authorization is driven entirely by the connection).
--
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:
<87prnxdged.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!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<g8s5lo$7d1$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87prnxdged.fsf@windlord.stanford.edu> Subject: Re: About 480 and 502 codes Date: Sun, 24 Aug 2008 18:36:58 -0700 From: Russ Allbery <rra@stanford.edu> References: <g8s5lo$7d1$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!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 39 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1219628218 13477 171.64.19.147 (25 Aug 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:dn2fokmyYMDQoWcg5cBuF5cW008=