🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51219

Re: Setting up Readers.conf

#51219
From: Russ Allbery
Date: Wed, 14 Mar 2001 23:27
50 lines
3191 bytes
bill davidsen <davidsen@tmr.com> writes:

> A few comments:

> <> res vs. auth
>   The doc says that res programs may return a value with or without
> domain. It's not clear from the man page how this applies to the auth
> programs, if the default domain is added to the user name from AUTHINFO,
> or added if the value returned after authprog.

auth is the same.  It may return a value with or without a domain, and if
no domain is provided, default-domain is used.  nnrpd treats the user name
from AUTHINFO as a magic cookie and just passes it off to the auth
program, so only the value returned by the auth program is significant to
nnrpd and the rest of readers.conf.

> <> last match problems
>   The auth stanzas are executed and do last match. If you have multiple
> authprog entries in a single stanza, however, not all res or auth progs
> are tried, checking stops after the first successful match. This
> behaviour is useful, but *not* really intuitive.

It is documented, though.  I agree that it's not intuitive, but I also am
not sure it's worth changing.

> <> Group lists
>   There was discussion about modifying the res/auth interface to allow
> returning a group list from the program, to avoid needing to have a
> whole bunch of stanzas for every possible combination. What happened to
> this, if anything?

Everyone agrees that it's a good idea, but the existing readers.conf code
is hard to work with.  This probably wouldn't be too bad to implement,
though.

> In the case of the original poster, and some things I'm doing, there are
> a *lot* of possible values, which make for a large readers.conf file
> (and beg for a little program to generate all this stuff!).

If you have enough complexity that you're thinking a little program might
be nice, you may want to look at the Perl authentication hooks.  They can
also be faster than forking an external resolver given the current
infrastructure.

-- 
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: <ylu24w53sz.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-03!supernews.com!nntp.cs.ubc.ca!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <m3u255gyk3.fsf@pyrophore.ogoense.net> <yl7l21cgnk.fsf@windlord.stanford.edu> <98oei6$2mji$1@newssvr05-en0.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylu24w53sz.fsf@windlord.stanford.edu>
Subject: Re: Setting up Readers.conf
Date: Wed, 14 Mar 2001 23:27:56 +0000
From: Russ Allbery <rra@stanford.edu>
References: <m3u255gyk3.fsf@pyrophore.ogoense.net> <yl7l21cgnk.fsf@windlord.stanford.edu> <98oei6$2mji$1@newssvr05-en0.news.prodigy.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!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
X-Trace: news.Stanford.EDU 984612476 2599 171.64.13.23 (14 Mar 2001 23:27:56 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)