🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53228

Re: INN 2.3.x scalability: Problem?

#53228
From: Russ Allbery
Date: Wed, 11 Jul 2001 10:18
28 lines
2342 bytes
Bill Allison <bill.allison@bsw.co.uk> writes:

> It's with scalability in terms of controlling access via readers.conf to
> different combinations of restricted access newsgroups for groups of
> users. As set up below it does exactly what I need, but the number of
> access stanzas in readers.conf is the factorial of the number of
> restricted access newsgroups (assuming that all combinations are
> required). So when my company asks for another secured newsgroup, the
> number of access stanzas will rise to 24 (then 120 then 720 then
> 5760...) making readers.conf too difficult to maintain manually (and
> what about performance?).

Yup.  This is a known problem; the best solution is to add support for
authenticators returning a list of newsgroups that the user is allowed to
read and post.  In the interim, the best way to solve this problem is to
stop using readers.conf and instead turn on the Perl authentication hooks.
The Perl authentication sub can return a wildmat expression saying what
groups the user is allowed to read, so you can then put all the logic for
building that list into the authentication sub.

(You can also do the same in Python if you prefer.)

-- 
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: <ylzoabahvv.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <9dc3cc73.0107110121.2388b9d3@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylzoabahvv.fsf@windlord.stanford.edu>
Subject: Re: INN 2.3.x scalability: Problem?
Date: Wed, 11 Jul 2001 10:18:28 +0000
From: Russ Allbery <rra@stanford.edu>
References: <9dc3cc73.0107110121.2388b9d3@posting.google.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 27
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 994846708 26271 171.64.13.23 (11 Jul 2001 10:18:28 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)