🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Julien ÉLIE Sun, 07 Sep 2008 10:22
Response code for AUTHINFO GENERIC
#79411
Author: Julien ÉLIE
Date: Sun, 07 Sep 2008 10:22
22 lines
2001 bytes
Hi,

In RFC 2980, it is said for AUTHINFO GENERIC:

   The authenticators converse using their protocol until complete.  If
   the authentication succeeds, the server authenticator will terminate
   with a 281, and the client can continue by reissuing the command that
   prompted the 380.  If the authentication fails, the server will
   respond with a 502.

Hmm...  380 never existed (a typo for 480 I believe).

But my question is for 502:  are news servers which support the AUTHINFO
capability as described in RFC 4643 supposed to send 502 or 481 when
authentication fails for the now deprecated AUTHINFO GENERIC?

-- 
Julien ÉLIE

« Les horizontales se rencontrent dans tous les milieux,
  les parallèles jamais. » (Alphonse Allais) 
Re: Response code for AUTHINFO GENERIC
#79413
Author: Russ Allbery
Date: Sun, 07 Sep 2008 17:06
25 lines
2131 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> In RFC 2980, it is said for AUTHINFO GENERIC:
>
>   The authenticators converse using their protocol until complete.  If
>   the authentication succeeds, the server authenticator will terminate
>   with a 281, and the client can continue by reissuing the command that
>   prompted the 380.  If the authentication fails, the server will
>   respond with a 502.
>
> Hmm...  380 never existed (a typo for 480 I believe).
>
> But my question is for 502:  are news servers which support the AUTHINFO
> capability as described in RFC 4643 supposed to send 502 or 481 when
> authentication fails for the now deprecated AUTHINFO GENERIC?

It's really the wrong meaning for 502, but as with the other legacy
commands, my tendency is to keep using the existing response codes for as
long as the old command is still around.

-- 
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.
Re: Response code for AUTHINFO GENERIC
#79415
Author: Julien ÉLIE
Date: Sun, 07 Sep 2008 17:22
30 lines
2580 bytes
Hi Russ,

>> In RFC 2980, it is said for AUTHINFO GENERIC:
>>
>>   The authenticators converse using their protocol until complete.  If
>>   the authentication succeeds, the server authenticator will terminate
>>   with a 281, and the client can continue by reissuing the command that
>>   prompted the 380.  If the authentication fails, the server will
>>   respond with a 502.
>>
>> Hmm...  380 never existed (a typo for 480 I believe).
>>
>> But my question is for 502:  are news servers which support the AUTHINFO
>> capability as described in RFC 4643 supposed to send 502 or 481 when
>> authentication fails for the now deprecated AUTHINFO GENERIC?
>
> It's really the wrong meaning for 502, but as with the other legacy
> commands, my tendency is to keep using the existing response codes for as
> long as the old command is still around.

Ok, then the problem is that if it is implemented [and it is, as far as INN
is concerned] with a response code of 481 (whereas it should have been 502
according to RFC 2980), what should we do?
Keep the wrong right answer 481 or put the right wrong answer 502?  :)

-- 
Julien ÉLIE

« Sois sage, ô ma douleur, et tiens-toi plus tranquille. » (Charles Baudelaire) 
Re: Response code for AUTHINFO GENERIC
#79416
Author: Russ Allbery
Date: Sun, 07 Sep 2008 17:28
15 lines
1749 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Ok, then the problem is that if it is implemented [and it is, as far as INN
> is concerned] with a response code of 481 (whereas it should have been 502
> according to RFC 2980), what should we do?
> Keep the wrong right answer 481 or put the right wrong answer 502?  :)

Oh!  In that case, keep 481.  RFC 2980 isn't as compelling of an argument
as current practice.

-- 
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads