🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86768

Re: Unicode in USENET article headers

#86768
From: Michael Baeuerle
Date: Sat, 09 May 2015 14:21
59 lines
4049 bytes
Julien ÉLIE wrote:
> Hi Michael,
> 
> > The RFC4643 authentication problem was a bit subtle:
> > My NNTP driver normally do client to server authentication only after
> > the server request it via a 480 response. Because your server advertise
> > no POST capability before authentication, the driver rejected the POST
> > command before execution. Therefore it received no 480 response and
> > never tried to authenticate.
> 
> Yep, this is how CAPABILITIES works.  If the POST capability is not 
> available in the current state of the connection, then it is not 
> advertised.
> 
> See Section 3.3.1 of RFC 3977:
> 
>    The server MUST ensure that the capability list accurately reflects
>    the capabilities (including extensions) currently available.  If a
>    capability is only available with the server in a certain state (for
>    example, only after authentication), the list MUST only include the
>    capability label when the server is in that state.  Similarly, if
>    only some of the commands in an extension will be available, or if
>    the behaviour of the extension will change in some other manner,
>    according to the state of the server, this MUST be indicated by
>    different arguments in the capability line.

IMHO a matching definition for the AUTHINFO capability in RFC4643 should
read like:
If the AUTHINFO capability is advertised, an authentication request
MUST be accepted by the server at any time as long as it is in this
state.
But unfortunately it doesn't read like this.

> > Immediate authentication is implemented in the driver as an option too,
> > but is not the default, because RFC4643 specify:
> > |
> > | Servers SHOULD accept such unsolicited authentication requests.
> >           ^^^^^^
> > In other words: Only "auth after 480" is mandatory and a server is
> > allowed to reject an unsolicited authentication.
> > Maybe I should nevertheless switch the default setting for the NNTP
> > driver?
> 
> I believe switching to an encrypted connection and then authenticating 
> should be done as soon as possible.  Indeed, the available commands can 
> change after that (you could have POST, NEWNEWS...) as well as the 
> result of the LIST command.

As an example: Your server don't allow me to read this group anymore
after authentication using the test account (but before/without it
does).

But I admit this should be a corner case. I will change the default of
the NNTP driver to immediate authentication.
-- 
[Wunsch nach geprüfter Sicherheit] Dein Wunsch ist längst erfüllt - es
gibt genügend Buden die Dir gegen Münzeinwurf Deine IT-Sicherheit
zertifizieren. Du musst natürlich fest daran glauben dass es hilft,
sonst bringt es nichts.                         René Schuster in dcsm
Technical Details
Message-ID: <AABVThA4lBMAAAUv.A1.flnews@WStation1.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <AABVSz44XaQAABwE.A1.flnews@WStation3.stz-e.de> <mii6oa$rsc$1@news.trigofacile.com> <AABVTMECx4oAAAxO.A1.flnews@WStation3.stz-e.de> <miitn9$lbf$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABVThA4lBMAAAUv.A1.flnews@WStation1.micha.freeshell.org>
Subject: Re: Unicode in USENET article headers
Date: Sat, 09 May 2015 14:21:34 +0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <AABVSz44XaQAABwE.A1.flnews@WStation3.stz-e.de> <mii6oa$rsc$1@news.trigofacile.com> <AABVTMECx4oAAAxO.A1.flnews@WStation3.stz-e.de> <miitn9$lbf$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.20150601.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 59
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ZOJB3Ot1ppziqAugoIwEew12ujrdpvJSM+RzxzFdg4RumleLjf
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:7tEeBbdaM23KzKals7rGaXPiSE0=
 sha1:fb++ZSRKxEqBgopTuf0KKprga08=
Injection-Date: 9 May 2015 14:21:34 -0000
User-Agent: flnews/0.11pre16 (for GNU/Linux)