🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49913

Re: nnrpd config (was Re: rpost question)

#49913
From: Russ Allbery
Date: Wed, 17 Jan 2001 13:23
50 lines
3482 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> This is a standard INN option (nnrpdauthsender)

> That reminded me to go polish up reader config, and I'm somewhat
> surprised to see that (with nnrpdauthsender on) any user who authorizes
> can set Sender: arbitrarily.  What is the rationale here?

Yes, that is a little odd.  I don't really understand that one either.

> One other thing -- I finally got around to really using readers.conf
> instead of just trying to emulate nnrp.access with it[1].  This is most
> definitely better, but I can't figure out how to do something which
> seems, to me, quite reasonable.  I have a database, suitable for
> ckpasswd, of users.  I'd like to allow local users to connect without
> authenticating, because I trust identd on localhost.  However, if a user
> on localhost would like to authenticate using authinfo (to become a
> different user), he should be able to.

Well, you're running into a flaw in the protocol to some degree.  The
authentication protocol that got added into NNTP never really took into
account the concept of authenticating optionally.  Everything makes sense
if you either don't have to authenticate at all or you have to
authenticate once before you can do anything.  For everything else, you
start discovering warts and you begin to realize that the NNTP clients
don't really do what you want depending on what it is that you want.

Part of the problem is that return codes were added for "authentication
required" but not for "you don't have to authenticate but I might have
given you more information in response to that command if you had" for
things like LIST.

> Putting "* --> ckpasswd" first and "localhost --> ident" second leads to
> (I think -- I didn't verify this) identd being used for localhost even
> if the user sends authinfo.

No, this should work.

Your ident auth block only has a res: parameter and not an auth:
parameter, so it triggers on initial connection.  But when they send
authentication information with AUTHINFO, nnrpd rescans the auth blocks
and only tries blocks with auth: parameters.  So if you put ident second,
it should scan back past it (it scans from bottom to top) and ignore it
after they've authenticated because it doesn't have an auth: parameter and
then find the ckpasswd block and try it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID: <ylzogqpb17.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.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <3a62eab0$0$18424@reader4> <G77r75.E9q@dgsys.co.uk> <93vuoi$npk$1@taliesin.netcom.net.uk> <yl4ryzesav.fsf@windlord.stanford.edu> <943c8b$q2j$3@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <ylzogqpb17.fsf@windlord.stanford.edu>
Subject: Re: nnrpd config (was Re: rpost question)
Date: Wed, 17 Jan 2001 13:23:48 +0000
From: Russ Allbery <rra@stanford.edu>
References: <3a62eab0$0$18424@reader4> <G77r75.E9q@dgsys.co.uk> <93vuoi$npk$1@taliesin.netcom.net.uk> <yl4ryzesav.fsf@windlord.stanford.edu> <943c8b$q2j$3@marduk.litech.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.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 49
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)