🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79479

Unreadable newsgroup after AUTHINFO

#79479
From: Julien ÉLIE
Date: Sat, 27 Sep 2008 10:02
77 lines
3140 bytes
Hi,

After a successful STARTTLS or AUTHINFO SASL, the NNTP protocol is reset,
especially the currently selected newsgroup, if any.

However, after a successful authentication with AUTHINFO USER/PASS, RFC 4643
does not specify anything.  Consequently, I have a concern about how we should
behave in the following case:


The current user has read access to fr.test.

  GROUP fr.test
  211 6784 1 7495 fr.test
  STAT 7492
  223 7492 <48dde061$0$1281$426a74cc@news.free.fr> status

Everything is normal.  Then, let's authenticate with an user which has access
to everything except fr.test.

  AUTHINFO USER test
  381 Enter password
  AUTHINFO PASS test
  281 Authentication succeeded

  ARTICLE <48dde061$0$1281$426a74cc@news.free.fr>
  502 Read access denied

All right!
And we also have:

  ARTICLE 7492
  502 Read access denied


My question is:  what do we do with stuff like the following?

  ARTICLE 999999
  423 Bad article number
or
  502 Read access denied

  NEXT
  502 Read access denied
  NEXT
  502 Read access denied
  NEXT
  502 Read access denied
  NEXT
  421 No next article to retrieve
or
  502 Read access denied


I think this behaviour is really weird.
But according to RFC 3977:

 NEXT
   If the currently selected newsgroup is valid, the current article
   number MUST be set to the next article in that newsgroup (that is,
   the lowest existing article number greater than the current article
   number).

The selected newsgroup is still valid after AUTHINFO USER/PASS.


The best would have been to reset the NNTP protocol after successful
AUTHINFO commands but as it is not the case, what is the expected behaviour
with internal articles counters?

-- 
Julien ÉLIE

« -- La paix n'a pas de prix... Si tu veux la paix...
  -- Mon petit bonhomme, les phrases historiques,
  alea iacta est et tout ça, c'est moi qui les fais ici ! » (César) 
Technical Details
Message-ID: <gbl0bf$nd$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.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <gbl0bf$nd$1@news.trigofacile.com>
Subject: Unreadable newsgroup after AUTHINFO
Date: Sat, 27 Sep 2008 12:02:21 +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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 77
NNTP-Posting-Host: aaubervilliers-151-1-58-236.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1222509744 749 83.112.31.236 (27 Sep 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 27 Sep 2008 10:02:24 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049