🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83648

Re: Encoding of AUTHINFO USER/PASS arguments

#83648
From: Julien ÉLIE
Date: Sat, 13 Nov 2010 00:25
56 lines
3594 bytes
Hi Russ,

>> The initial implementation of RFC 4643 they do is to encode
>> everything in UTF-8 because RFC 3977 mentions that "The character
>> set for all NNTP commands is UTF-8." and RFC 4643 does not say
>> anything about the encoding.
>> Just a "user-pass-char = B-CHAR" without any explanation...
>
> It's completely unspecified what encoding to use for AUTHINFO USER/PASS,
> which is one of the problems fixed by SASL.  Clients should always use
> SASL where possible because of things like this.  None of the legacy
> authentication mechanisms (for protocols besides NNTP, as well) support
> character sets.

All right.  Thanks a lot for the explanation.  I did not know SASL
specifies an encoding.  That's good news for inter-operability.

RFC 4614 about the basic SASL PLAIN mechanism:

   The mechanism consists of a single message, a string of [UTF-8]
   encoded [Unicode] characters, from the client to the server.
[...]
   The authorization identity (authzid), authentication identity
   (authcid), password (passwd), and NUL character deliminators SHALL be
   transferred as [UTF-8] encoded strings of [Unicode] characters.  As
   the NUL (U+0000) character is used as a deliminator, the NUL (U+0000)
   character MUST NOT appear in authzid, authcid, or passwd productions.


Incidentally, is there a nuance between MUST and SHALL?
RFC 2119 does not speak about a possible difference in meaning:

   MUST   This word, or the terms "REQUIRED" or "SHALL", mean that the
   definition is an absolute requirement of the specification.


Yet, I thought that a question like "Shall I do that?" is different than
"Must I do that?"...



> News servers probably can't do anything better than just accepting them as
> a byte stream and doing a byte-by-byte comparison against local
> configuration.

OK.

-- 
Julien ÉLIE

« Give laugh to all but smile to one,
  Give cheeks to all but lips to one,
  Give love to all but Heart to one,
  Let everybody love you
  But you love one. » 
Technical Details
Message-ID: <ibklt3$a0m$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-51-137.w83-114.abo.wanadoo.fr!not-for-mail
References: <iash7b$1vm$1@news.trigofacile.com> <8762we9jfs.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ibklt3$a0m$1@news.trigofacile.com>
Subject: Re: Encoding of AUTHINFO USER/PASS arguments
Date: Sat, 13 Nov 2010 01:25:05 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <iash7b$1vm$1@news.trigofacile.com> <8762we9jfs.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-51-137.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 56
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Nov 2010 00:25:07 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-51-137.w83-114.abo.wanadoo.fr:83.114.129.137";
 logging-data="10262"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <8762we9jfs.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263
X-Original-Bytes: 3405