🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71861

Re: NNTP authentication question (continued)

#71861
From: Russ Allbery
Date: Tue, 14 Jun 2005 18:55
74 lines
4274 bytes
themf <themf@graffiti.net> writes:
> Russ Allbery wrote:

>> If you're going to do MODE READER, it should be done as the very first
>> command of the session, before any authentication, since if MODE READER
>> is actually needed and successful, it will discard your authentication.

> Sorry, I don't understand this - MODE READER is to specify to Innd that
> you're a newsreader, yes?

Right.

> Why would that not need or "discard" any authentication?

Because if you authenticate before sending MODE READER, you're
authenticating to a completely different program than the program you'll
be talking to after sending MODE READER, and the authentication
information doesn't carry over.  First the client should send MODE READER,
*then* it should send the authentication.  (I realize that you can't
change the client behavior; see below.)

>> There was (is?) unfortunately a bug in Diablo that led people to think

> What is Diablo?

It's another news server implementation that doesn't actually do anything
(important) when sent MODE READER, but which unfortunately had MODE READER
in the set of commands that required authentication for a while.

>> If you get an authentication required response to MODE READER, you can
>> just ignore it and continue since no implementation that actually
>> requires that command will ever send such a response.

> Um, I'm confused....... - I *WANT* there to be authentication if a
> newsreader connects, using the Unix usernames, the point of this whole
> thread.....?

I understand.  Your news reader should first send MODE READER, ignoring
the server response, and then send authentication.  Right now, it's
authenticating first and then sending MODE READER, which doesn't work.
This isn't something you can fix unless you're the author of Pan; the only
thing you can do is make it so that MODE READER isn't required at all.

> I just want it to happen from the beginning, instead of the first 381
> and 281.

381 and 281 *is* the authentication process.

> (and of course, I can't control how Pan behaves, or any other reader
> like Outlook Express that my clients can be using, they're just
> production software already out there.......?)

I understand.

>> Narrow down your incoming.conf configuration to only those hosts that
>> should actually be peers.  Anyone connecting who's not listed in
>> incoming.conf will get handed off to nnrpd immediately and won't need
>> to send MODE READER.

> There are no peers. The only people connecting to my server will be
> newsreaders.

Then make sure that no host other than localhost has permissions in
incoming.conf.  I assume that the reader connections aren't coming from
localhost?

Basically, these symptoms probably mean that the permissions granted in
your incoming.conf configuration file are too broad.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <874qc03h0e.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <1118676315.618010.16170@g14g2000cwa.googlegroups.com> <877jgy8d69.fsf@windlord.stanford.edu> <1118763753.514579.274340@g14g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <874qc03h0e.fsf@windlord.stanford.edu>
Subject: Re: NNTP authentication question (continued)
Date: Tue, 14 Jun 2005 11:55:29 -0700
From: Russ Allbery <rra@stanford.edu>
References: <1118676315.618010.16170@g14g2000cwa.googlegroups.com> <877jgy8d69.fsf@windlord.stanford.edu> <1118763753.514579.274340@g14g2000cwa.googlegroups.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 74
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1118775329 12209 171.64.19.147 (14 Jun 2005
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:Jo8mTNn+H5jTGdXAB4jhXaEPG1A=