Article View: news.software.nntp
Article #71857Re: NNTP authentication question (continued)
From: Russ Allbery
Date: Mon, 13 Jun 2005 15:54
Date: Mon, 13 Jun 2005 15:54
42 lines
3188 bytes
3188 bytes
themf <themf@graffiti.net> writes:
> What happens is - Pan sends a AUTHINFO USER and PASS, which results in
> the first 381 and 281, at which point innd says the "posting OK" bit,
> and then does a MODE READER, whereupon the server requires
> authentication again (says so), and Pan does, indeed, do -ANOTHER-
> AUTHINFO USER and PASS, which is successfully using the Unix usernames
> and passwords (going through if it's correct or 502-ing if its not).
Ah, okay, semi-bug in Pan. (Well, not that it's really Pan's fault, as
this part of NNTP is badly documented -- the new standard will clear this
up.)
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.
There was (is?) unfortunately a bug in Diablo that led people to think it
should be done in some other order, but this has always been the case with
INN and INN is the only implementation that actually requires MODE READER
in some circumstances. 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.
> It looks like my Innd is set up to allow everyone in, except if they are
> a newsreader, whereupon it'll require authentication (seems a bit
> topsy-turvy to me, I thought you required authentication *to* post), but
> anyway, what do I do to rectify this?
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.
Even better, run transit news and reader connections on separate ports,
but that requires more setup.
--
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:
<877jgy8d69.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!nntp.giganews.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<1118676315.618010.16170@g14g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <877jgy8d69.fsf@windlord.stanford.edu> Subject: Re: NNTP authentication question (continued) Date: Mon, 13 Jun 2005 08:54:54 -0700 From: Russ Allbery <rra@stanford.edu> References: <1118676315.618010.16170@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!nntp.giganews.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 42 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1118678094 21350 171.64.19.147 (13 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:YZQ+X+pVxrrppVfP52Ax3j3blYc=