🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87531

Case-sensitive SASL mechanisms and compression algorithms?

#87531
From: Julien ÉLIE
Date: Sat, 24 Sep 2016 20:45
43 lines
2420 bytes
Hi,

I've just discovered that SASL mechanisms are supposed to be case-sensitive.

Indeed, according to RFC 4643:

    authinfo-sasl-command = "AUTHINFO" WS "SASL" WS mechanism
         [WS initial-response]
    mechanism = 1*20mech-char
    mech-char = UPPER / DIGIT / "-" / "_"
    UPPER = %x41-5A
    DIGIT = %x30-39

Which means that only upper-case letters are allowed (A-Z).

It is coherent with the SASL mechanisms registry:
http://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml

"SASL mechanisms are named by strings, from 1 to 20 characters in
length, consisting of upper-case letters, digits, hyphens, and/or
underscores.  SASL mechanism names must be registered with the IANA."



So, an NNTP command like "AUthinFO SasL digEST-md5" is supposed to 
return 501 (invalid syntax) whereas "AUthinFO SasL DIGEST-MD5" is fine.



What should we do for NNTP compression algorithms?
As we'll create a specific registry for NNTP, should we also enforce 
case sensitivity?  That is to say "COMprEss deFLAte" is not valid, 
whereas "COMprEss DEFLATE" is?

Any thoughts about that?

-- 
Julien ÉLIE

« Un voyage de mille lieues commence toujours par un premier pas. »
   (Lao Zi)

Technical Details
Message-ID: <ns6ol2$e95$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.(19219).mbox.7z!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <ns6ol2$e95$1@news.trigofacile.com>
Subject: Case-sensitive SASL mechanisms and compression algorithms?
Date: Sat, 24 Sep 2016 22:45:52 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 24 Sep 2016 20:45:22 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c8000d914ec126c65005.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:d91:4ec1:26c6:5005";
 logging-data="14629"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.2.0
X-Mozilla-News-Host: snews://news.individual.net:563
X-Received-Body-CRC: 2100946300
X-Received-Bytes: 2403