Article View: news.software.nntp
Article #79360Re: About 480 and 502 codes
From: Julien ÉLIE
Date: Tue, 26 Aug 2008 06:21
Date: Tue, 26 Aug 2008 06:21
105 lines
3944 bytes
3944 bytes
Hi Russ,
Thanks again for all your answers and having taken time to search for them.
I am sorry for those which are very clear in RFC; had I read the right
paragraph, I would not have asked you questions on them.
>> By the way, I do not find the proper behaviour for that sequence:
>>
>> AUTHINFO USER test
>> 381
>> AUTHINFO USER newtest
>> 381
>> AUTHINFO PASS password
>> 281
>>
>> Is it 381 for the first two ones?
>
> Yes.
OK.
>> And is it the last user which is used? ("newtest" for this example)
>
> Yes. RFC 4643, section 2.3.2:
>
> The server:
>
> - MUST return a 381 response to AUTHINFO USER;
>
> - MUST return a 482 response to AUTHINFO PASS if there is no cached
> username;
>
> - MUST use the argument of the most recent AUTHINFO USER for
> authentication;
What happens with:
AUTHINFO USER user
381
AUTHINFO PASS pass
482
AUTHINFO PASS newpass
Is the last AUTHINFO PASS command treated with the most recent AUTHINFO USER
received, as said in RFC 4643?
Or should the cached username be reset on first AUTHINFO PASS failure?
Another question:
AUTHINFO USER user
381 PASS required
AUTHINFO PASS password
502 Authentication error
Connection closed by foreign host.
nnrpd currently closes the connection right after a failure. Thus, the reader
cannot try to authenticate a second time (RFC says it can try another times).
Should we change that behaviour? Do you know why it was implemented this way?
>> AUTHINFO USER test
>> 381
>> GROUP news.software.nntp
>> 480
>> AUTHINFO PASS password
>> 281
>>
>> Is it a valid sequence? Note that GROUP asks for authentication (480).
>
> Server's discretion. It's permissible for that to be a valid sequence, or
> the server may choose to reject it.
Thanks!
>> AUTHINFO USER test
>> 381
>> MODE READER
>> 200
>> AUTHINFO PASS password
>> 281 or 482?
>>
> Server's discretion.
I *do* like "server's discretion"! :-)
> Since nnrpd will advertise READER, the former applies. (So my previous
> message was correct; nnrpd is in fact required by the standard to
> implement MODE READER as a no-op.)
OK.
--
Julien ÉLIE
« La femme a la passion du calcul : elle divise son âge par deux,
double le prix de ses robes, triple les appointements de son mari
et ajoute cinq ans à l'âge de sa meilleure amie. » (Marcel Achard)
Technical Details
Message-ID:
<g907e2$q5m$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!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mailReferences:
<g8s5lo$7d1$1@news.trigofacile.com> <87prnxdged.fsf@windlord.stanford.edu> <g8thgh$84n$1@news.trigofacile.com> <87sksty31w.fsf@windlord.stanford.edu> <g8v5kh$i9d$1@news.trigofacile.com> <87vdxosfr5.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <g907e2$q5m$1@news.trigofacile.com> Subject: Re: About 480 and 502 codes Date: Tue, 26 Aug 2008 08:21:49 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <g8s5lo$7d1$1@news.trigofacile.com> <87prnxdged.fsf@windlord.stanford.edu> <g8thgh$84n$1@news.trigofacile.com> <87sksty31w.fsf@windlord.stanford.edu> <g8v5kh$i9d$1@news.trigofacile.com> <87vdxosfr5.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!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 105 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 1219731715 26806 83.199.208.50 (26 Aug 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Tue, 26 Aug 2008 06:21:55 +0000 (UTC) In-Reply-To: <87vdxosfr5.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