
From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Thu May 14 13:20:43 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C75383A6939 for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 13:20:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id To25pS4zshJs for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 13:20:42 -0700 (PDT)
Received: from smtp1.stanford.edu (smtp1.Stanford.EDU [171.67.219.81]) by core3.amsl.com (Postfix) with ESMTP id 9F2B23A705F for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:20:42 -0700 (PDT)
Received: from smtp1.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 9AE4B178E1C for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:22:15 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp1.stanford.edu (Postfix) with SMTP id 6CF15178DEE for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:22:15 -0700 (PDT)
Received: (qmail 13928 invoked by uid 64013); 14 May 2009 20:22:14 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 14 May 2009 20:22:14 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 13917 invoked by uid 64013); 14 May 2009 20:22:12 -0000
Received: from flowerpot.kaijanaho.fi (80.68.88.155) by lothlorien.stanford.edu with SMTP; 14 May 2009 20:22:12 -0000
Received: from kukkaseppele.kaijanaho.fi (e82-103-222-184.elisa-laajakaista.fi [82.103.222.184]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ajk) by flowerpot.kaijanaho.fi (Postfix) with ESMTPSA id E1602FCCCF for <ietf-nntp@lists.eyrie.org>; Thu, 14 May 2009 23:22:12 +0300 (EEST)
Received: by kukkaseppele.kaijanaho.fi (Postfix, from userid 1000) id A2B38AA829A; Thu, 14 May 2009 23:22:10 +0300 (EEST)
Date: Thu, 14 May 2009 23:22:10 +0300
From: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi>
To: ietf-nntp@lists.eyrie.org
Message-ID: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.18 (2008-05-17)
Subject: [NNTP] RFC 4643 user-pass-char question
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Hi

RFC 4643 section 3.1 says, in part:

   user-pass-char = B-CHAR

   NOTE: a server implementation MAY parse AUTHINFO USER and AUTHINFO
   PASS specially so as to allow white space to be used within the
   username or password.  Such implementations accept the additional
   syntax (making these two items inconsistent with "token" in Section
   9.8 of [NNTP]):

   user-pass-char =/ SP / TAB


Now, B-CHAR is defined in RFC 3977, section 9.8 as

   B-CHAR     = CTRL / TAB / SP / %x21-FF


It seems to me that the NOTE in 4643 § 3.1, particularly the rule augmenting
user-pass-char is redundant, since SP and TAB are B-CHARs.

My question is, what is this note *intended* to convey?


Draft 9 (June 2005) had P-CHAR instead of B-CHAR.  Draft 10 (August 2005) has
B-CHAR.  The change seems to have been proposed at
http://lists.eyrie.org/pipermail/ietf-nntp/2005-August/005840.html, but its
effect on the NOTE is not discussed.


The question I was trying to resolve by reading the grammar was, is it
permissible (or eve required) for a server to respond with 501 to an AUTHINFO
USER with a username containing spaces.  However, given the above problem, I
am unable to determine the answer from the document itself.

-- 
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/


From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Thu May 14 13:37:41 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E4ACD28C30A for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 13:37:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uiuImyE9tkJ7 for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 13:37:41 -0700 (PDT)
Received: from smtp1.stanford.edu (smtp1.Stanford.EDU [171.67.219.81]) by core3.amsl.com (Postfix) with ESMTP id ED8C528C2D4 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:37:40 -0700 (PDT)
Received: from smtp1.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 7F4641787C3 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:39:14 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp1.stanford.edu (Postfix) with SMTP id 4BCD61787A8 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 13:39:14 -0700 (PDT)
Received: (qmail 14320 invoked by uid 64013); 14 May 2009 20:32:32 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 14 May 2009 20:32:32 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 14309 invoked by uid 64013); 14 May 2009 20:32:31 -0000
Received: from smtp1.stanford.edu (171.67.219.81) by lothlorien.stanford.edu with SMTP; 14 May 2009 20:32:31 -0000
Received: from smtp1.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 7119D178B88 for <ietf-nntp@lists.eyrie.org>; Thu, 14 May 2009 13:32:31 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134]) by smtp1.stanford.edu (Postfix) with ESMTP id 3407717860B for <ietf-nntp@lists.eyrie.org>; Thu, 14 May 2009 13:32:31 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000) id 2AF50E7935; Thu, 14 May 2009 13:32:31 -0700 (PDT)
To: ietf-nntp@lists.eyrie.org
Subject: Re: [NNTP] RFC 4643 user-pass-char question
In-Reply-To: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi> (Antti-Juhani Kaijanaho's message of "Thu\, 14 May 2009 23\:22\:10 +0300")
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
References: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi>
From: Russ Allbery <rra@stanford.edu>
Organization: The Eyrie
Date: Thu, 14 May 2009 13:32:31 -0700
Message-ID: <8763g32zog.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi> writes:

> RFC 4643 section 3.1 says, in part:
>
>    user-pass-char =3D B-CHAR
>
>    NOTE: a server implementation MAY parse AUTHINFO USER and AUTHINFO
>    PASS specially so as to allow white space to be used within the
>    username or password.  Such implementations accept the additional
>    syntax (making these two items inconsistent with "token" in Section
>    9.8 of [NNTP]):
>
>    user-pass-char =3D/ SP / TAB
>
> Now, B-CHAR is defined in RFC 3977, section 9.8 as
>
>    B-CHAR     =3D CTRL / TAB / SP / %x21-FF

Urgh.

> It seems to me that the NOTE in 4643 =A7 3.1, particularly the rule
> augmenting user-pass-char is redundant, since SP and TAB are B-CHARs.
>
> My question is, what is this note *intended* to convey?

It's intended to convey that usernames and passwords containing spaces
MAY be supported but are not required to be supported, and servers MAY
reject them, if I recall correctly.

> Draft 9 (June 2005) had P-CHAR instead of B-CHAR.  Draft 10 (August
> 2005) has B-CHAR.  The change seems to have been proposed at
> http://lists.eyrie.org/pipermail/ietf-nntp/2005-August/005840.html,
> but its effect on the NOTE is not discussed.

Hm.  Yeah.  We were talking about charset and I think I missed entirely
the implications for whitespace.

--=20
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Thu May 14 14:22:29 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8416C3A6EFC for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 14:22:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.007
X-Spam-Level: 
X-Spam-Status: No, score=-2.007 tagged_above=-999 required=5 tests=[AWL=1.691, BAYES_50=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, STOX_REPLY_TYPE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7BkknpvwSgqI for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 14:22:28 -0700 (PDT)
Received: from smtp5.stanford.edu (smtp5.Stanford.EDU [171.67.219.85]) by core3.amsl.com (Postfix) with ESMTP id ADAFC3A6B7A for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:22:28 -0700 (PDT)
Received: from smtp5.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id EB5D43B728C for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:24:01 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp5.stanford.edu (Postfix) with SMTP id C3CD93B7148 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:24:01 -0700 (PDT)
Received: (qmail 15832 invoked by uid 64013); 14 May 2009 21:24:01 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 14 May 2009 21:24:01 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 15821 invoked by uid 64013); 14 May 2009 21:23:59 -0000
Received: from 27.mail-out.ovh.net (91.121.30.210) by lothlorien.stanford.edu with SMTP; 14 May 2009 21:23:59 -0000
Received: (qmail 19330 invoked by uid 503); 14 May 2009 22:12:12 -0000
Received: from b6.ovh.net (HELO mail56.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 14 May 2009 22:12:12 -0000
Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 May 2009 21:23:58 -0000
Received: from aaubervilliers-151-1-37-189.w83-112.abo.wanadoo.fr (HELO Iulius) (julien%trigofacile.com@83.112.148.189) by ns0.ovh.net with SMTP; 14 May 2009 21:23:55 -0000
Message-ID: <C7CD75B7BDA34746BB99C2F44DA8FF99@Iulius>
From: =?iso-8859-1?Q?Julien_=C9LIE?= <julien@trigofacile.com>
To: <ietf-nntp@lists.eyrie.org>
References: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi>
In-Reply-To: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi>
Subject: Re: [NNTP] RFC 4643 user-pass-char question
Date: Thu, 14 May 2009 23:23:45 +0200
Organization: TrigoFACILE -- http://www.trigofacile.com/
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
X-Ovh-Tracer-Id: 10081870717207641479
X-Ovh-Remote: 83.112.148.189 (aaubervilliers-151-1-37-189.w83-112.abo.wanadoo.fr)
X-Ovh-Local: 213.186.33.20 (ns0.ovh.net)
X-Spam-Check: DONE|H 0.5/N
Cc: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi>
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Hi Antti-Juhani,

>   NOTE: a server implementation MAY parse AUTHINFO USER and AUTHINFO
>   PASS specially so as to allow white space to be used within the
>   username or password.  Such implementations accept the additional
>   syntax (making these two items inconsistent with "token" in Section
>   9.8 of [NNTP]):
>
>   user-pass-char =/ SP / TAB
>
> The question I was trying to resolve by reading the grammar was, is it
> permissible (or eve required) for a server to respond with 501 to an AUTHINFO
> USER with a username containing spaces.  However, given the above problem, I
> am unable to determine the answer from the document itself.

It is an interesting question, thanks!

I for one reckon it is a pretty good situation to answer 503.
According to RFC 3977:

   If the server recognizes the command but
   does not provide an optional feature (for example, because it does
   not store the required information), or if it only handles a subset
   of legitimate cases (see the HDR command, Section 8.5, for an
   example), the response code 503 MUST be returned.


Here, AUTHINFO USER/PASS is recognized but does not provide the
"white space" support and only handles a subset of legitimate
users and passwords!


Any comments about that?

-- 
Julien ÉLIE

« Deux informaticiens discutent vers le 2 janvier :
  -- Qu'est ce que tu as pris comme résolution cette année ?
  -- 1024 × 768, et toi ? » 


From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Thu May 14 14:41:44 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A175128C2AC for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 14:41:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level: 
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id flL0dQxom9PS for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 14:41:43 -0700 (PDT)
Received: from smtp2.stanford.edu (smtp2.Stanford.EDU [171.67.219.82]) by core3.amsl.com (Postfix) with ESMTP id 5729528C2D0 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:40:51 -0700 (PDT)
Received: from smtp2.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id DE4D0170706 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:42:24 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp2.stanford.edu (Postfix) with SMTP id A531017070B for <nntpext-archive@ietf.org>; Thu, 14 May 2009 14:42:24 -0700 (PDT)
Received: (qmail 16225 invoked by uid 64013); 14 May 2009 21:42:24 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 14 May 2009 21:42:24 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 16214 invoked by uid 64013); 14 May 2009 21:42:22 -0000
Received: from flowerpot.kaijanaho.fi (80.68.88.155) by lothlorien.stanford.edu with SMTP; 14 May 2009 21:42:22 -0000
Received: from kukkaseppele.kaijanaho.fi (e82-103-222-184.elisa-laajakaista.fi [82.103.222.184]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ajk) by flowerpot.kaijanaho.fi (Postfix) with ESMTPSA id DAE1BFCD76 for <ietf-nntp@lists.eyrie.org>; Fri, 15 May 2009 00:42:22 +0300 (EEST)
Received: by kukkaseppele.kaijanaho.fi (Postfix, from userid 1000) id F3D9BAA829A; Fri, 15 May 2009 00:42:19 +0300 (EEST)
Date: Fri, 15 May 2009 00:42:19 +0300
From: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi>
To: ietf-nntp@lists.eyrie.org
Subject: Re: [NNTP] RFC 4643 user-pass-char question
Message-ID: <20090514214218.GH11223@kukkaseppele.kaijanaho.fi>
References: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi> <C7CD75B7BDA34746BB99C2F44DA8FF99@Iulius>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <C7CD75B7BDA34746BB99C2F44DA8FF99@Iulius>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

On Thu, May 14, 2009 at 11:23:45PM +0200, Julien ÉLIE wrote:
> I for one reckon it is a pretty good situation to answer 503.
> According to RFC 3977:
>
>   If the server recognizes the command but
>   does not provide an optional feature (for example, because it does
>   not store the required information), or if it only handles a subset
>   of legitimate cases (see the HDR command, Section 8.5, for an
>   example), the response code 503 MUST be returned.
>
>
> Here, AUTHINFO USER/PASS is recognized but does not provide the
> "white space" support and only handles a subset of legitimate
> users and passwords!

Rather depends on whether it is considered a syntax error (which is what I read
the draft 9 wording to require) or, as you say, an unimplemented optional
feature.  (OTOH, I find the whole 501/503 distinction rather confusing in
practice.)

One could even make the case that the server MAY respond with 481 (failed
authentication - no such user here).

-- 
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/

From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Thu May 14 15:19:13 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 95D6D3A67EA for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 15:19:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.476
X-Spam-Level: 
X-Spam-Status: No, score=-3.476 tagged_above=-999 required=5 tests=[AWL=2.822, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, STOX_REPLY_TYPE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDwoaybGEC1I for <ietfarch-nntpext-archive@core3.amsl.com>; Thu, 14 May 2009 15:19:12 -0700 (PDT)
Received: from smtp1.stanford.edu (smtp1.Stanford.EDU [171.67.219.81]) by core3.amsl.com (Postfix) with ESMTP id D8F233A6CA7 for <nntpext-archive@ietf.org>; Thu, 14 May 2009 15:19:12 -0700 (PDT)
Received: from smtp1.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 230171788BA for <nntpext-archive@ietf.org>; Thu, 14 May 2009 15:20:46 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp1.stanford.edu (Postfix) with SMTP id A585B17883D for <nntpext-archive@ietf.org>; Thu, 14 May 2009 15:20:45 -0700 (PDT)
Received: (qmail 17704 invoked by uid 64013); 14 May 2009 22:20:45 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 14 May 2009 22:20:45 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 17693 invoked by uid 64013); 14 May 2009 22:20:43 -0000
Received: from 27.mail-out.ovh.net (91.121.30.210) by lothlorien.stanford.edu with SMTP; 14 May 2009 22:20:43 -0000
Received: (qmail 4996 invoked by uid 503); 14 May 2009 23:08:57 -0000
Received: from b6.ovh.net (HELO mail56.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 14 May 2009 23:08:57 -0000
Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 May 2009 22:06:44 -0000
Received: from aaubervilliers-151-1-37-189.w83-112.abo.wanadoo.fr (HELO Iulius) (julien%trigofacile.com@83.112.148.189) by ns0.ovh.net with SMTP; 14 May 2009 22:06:41 -0000
Message-ID: <E9B13F8EA8A04770AAF23097CC972B09@Iulius>
From: =?iso-8859-1?Q?Julien_=C9LIE?= <julien@trigofacile.com>
To: <ietf-nntp@lists.eyrie.org>
References: <20090514202209.GF11223@kukkaseppele.kaijanaho.fi><C7CD75B7BDA34746BB99C2F44DA8FF99@Iulius> <20090514214218.GH11223@kukkaseppele.kaijanaho.fi>
In-Reply-To: <20090514214218.GH11223@kukkaseppele.kaijanaho.fi>
Subject: Re: [NNTP] RFC 4643 user-pass-char question
Date: Fri, 15 May 2009 00:06:32 +0200
Organization: TrigoFACILE -- http://www.trigofacile.com/
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
X-Ovh-Tracer-Id: 10804416981509995911
X-Ovh-Remote: 83.112.148.189 (aaubervilliers-151-1-37-189.w83-112.abo.wanadoo.fr)
X-Ovh-Local: 213.186.33.20 (ns0.ovh.net)
X-Spam-Check: DONE|H 0.5/N
Cc: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi>
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Hi,

>> I for one reckon it is a pretty good situation to answer 503.
>>
>> Here, AUTHINFO USER/PASS is recognized but does not provide the
>> "white space" support and only handles a subset of legitimate
>> users and passwords!
>
> Rather depends on whether it is considered a syntax error (which is what I read
> the draft 9 wording to require) or, as you say, an unimplemented optional
> feature.

It is not a big deal.  I think 503 is nicer here, knowing it is a special
(and RFC-allowed) feature to accept white spaces in AUTHINFO USER/PASS, even
in draft 9.
But please note that I do not see any problem in case you wish to answer 501.


> One could even make the case that the server MAY respond with 481 (failed
> authentication - no such user here).

481 implies that the syntax was valid and fully understood by the news server.
481 is not a valid answer in this case.

-- 
Julien ÉLIE

« Farpaitement ! » (Obélix) 

