Thread View: news.software.nntp
5 messages
5 total messages
Started by Bill Allison
Wed, 11 Jul 2001 09:21
INN 2.3.x scalability: Problem?
Author: Bill Allison
Date: Wed, 11 Jul 2001 09:21
Date: Wed, 11 Jul 2001 09:21
100 lines
3693 bytes
3693 bytes
Hi
Server: Intel / Suse 7.0 / INN 2.3.2 Intranet only (no in or out feeds)
Readers: NT4.0 / OE4.x and 5.x
I've just installed as above and used pullnews to migrate postings
from an old server (Netscape Collabra / HP-UX). This was my first
experience of INN (apart from a brief flirtation with 2.2.2) and
of compiling anything on Linux so sure, I had to do a bit of
browsing in here to offset my inexperience, but really it went
like a dream. IMHO the quality of the product and the documentation
is impressive. However...
Problem:
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?).
Below is my newsgroup hierarchy, and my readers.conf. I've shortened
newsgroup names for brevity and clarity. Likely, as a newbie, I've
created this problem by adopting a wrong approach here, or perhaps
this *is* a limitation with INN "out of the box". If the latter I do
have an idea for a simple change to the way INN uses readers.conf
which might resolve this issue without drawback but being a newbie
I'll wait to see what response this post brings before making a fool
of myself :)
HIERARCHY (Those in upper-case are restricted access)
---------
b,
b.d,
b.w,
b.g,
b.e,
b.h,
b.o,
b.u,
b.p, B.P.T,
b.s, B.S.L,
b.i, b.i.c, b.i.t, B.I.N
readers.conf
------------
auth "everyone" {
hosts: "*"
auth: "ckpasswd -s"
}
access "everyone" {
users: "*"
newsgroups: "*, !b.p.t, !b.s.l, !b.i.n
access: "Read Post" }
access "t_l_n" {
users: "aabill, paulba, simon, news"
newsgroups: "*"
access: "Read Post"
}
access "t_n" {
users: "brianw, david, davidc, gary, simona, susannah"
newsgroups: "*, !b.s.l"
access: "Read Post"
}
access "t_l" {
users: "scott, tom, philh"
newsgroups: "*, !b.i.n"
access: "Read Post"
}
access "t" {
users: "alexb, davyd, derek, johnl, peter, steve"
newsgroups: "*, !b.s.l, !b.i.n"
access: "Read Post"
}
access "l" {
users: "alanw, gilmour, siobhan, huw, duncan, andrewm, kevin, phils, robing"
newsgroups: "*, !b.p.t, !b.i.n"
access: "Read Post"
}
access "n" {
users: "aadav, alison, ann, elaine, fiona, greville, jan, maggie"
newsgroups: "*, !b.p.t, !b.s.l"
access: "Read Post"
}
TIA
Bill Allison
Re: INN 2.3.x scalability: Problem?
Author: Russ Allbery
Date: Wed, 11 Jul 2001 10:18
Date: Wed, 11 Jul 2001 10:18
28 lines
2342 bytes
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.
Re: INN 2.3.x scalability: Problem?
Author: Russ Allbery
Date: Wed, 11 Jul 2001 12:34
Date: Wed, 11 Jul 2001 12:34
24 lines
2099 bytes
2099 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> writes:
> I've had another solution bouncing around in my head for a while now.
> Instead of readers.conf picking the last match for an access stanze, it
> would combine *all* the matching stanzas. That way, I'd only need one
> stanza for the default hierarchy set and one for each of the private
> hierarchies.
> I've not thought about it very hard though, so chances are it would fall
> over in some way. The only one I can think of just now is that it might
> cause existing configurations to break. Making it an optional switch in
> inn.conf would help there though.
It would make it hard to do wildcard catch-all stanzas, although I suppose
the switch would fix that too. Having two possible behaviors selected
with a switch would make it harder to explain, though, and readers.conf is
already pretty confusing.
--
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.
Re: INN 2.3.x scalability: Problem?
Author: Russ Allbery
Date: Wed, 11 Jul 2001 15:24
Date: Wed, 11 Jul 2001 15:24
62 lines
3141 bytes
3141 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> writes:
> Russ Allbery <rra@stanford.edu> writes:
>> It would make it hard to do wildcard catch-all stanzas,
> My thought was something along the lines of:
> access "default" {
> users: *
> newsgroups: *,!priva.*,!privb.*
> }
> access "priva" {
> users: alice, bob
> newsgroups: priva.*
> }
> access "privb" {
> users: bob, carol
> newsgroups: privb.*
> }
Right, and the difficulty comes if you want to set up an access stanza for
everyone who isn't alice, bob, or carol, like providing the basic set of
world-readable groups... hm. Although I guess that would only be a
problem if you had someone you specifically wanted to give *less*
privileges to than the general set of people.
Hm.
Yeah, you could probably rework things this way and still get all the
functionality of the current method, I think.
> When combining access for particular users, it would concantenate the
> newsgroups lines for the appropriate stanzas, for example, for bob it
> would wind up with:
> newsgroups: *,!priva.*,!*.privb.*,priva.*,privb.*
> I am hoping that INN already has code to factor a newsgroup pattern like
> that into something sensible -- I figured that the code for parsing the
> newsfeeds file would do something similar, though I've no idea because
> I've never looked hard enough.
No, the newsfeeds code just does the stupid simple thing and applies all
the wildmats in order. But wildmat is reasonably fast, so that doesn't
really lose much.
> That's the simple part. I imagine It gets more interesting if you want
> to be able to specify different access persmissions (read/post) for
> different hierarchies.
Yeah, you'd have to merge that somehow.
It's a very interesting idea. I'll ponder.
--
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.
Re: INN 2.3.x scalability: Problem?
Author: Bill Allison
Date: Mon, 16 Jul 2001 08:43
Date: Mon, 16 Jul 2001 08:43
33 lines
2627 bytes
2627 bytes
Russ Allbery <rra@stanford.edu> wrote in message news:<yllmlv8x0d.fsf@windlord.stanford.edu>... > Graeme Mathieson <graeme+usenet@mathie.cx> writes: > > > I've had another solution bouncing around in my head for a while now. > > Instead of readers.conf picking the last match for an access stanze, it > > would combine *all* the matching stanzas. That way, I'd only need one > > stanza for the default hierarchy set and one for each of the private > > hierarchies. > > > I've not thought about it very hard though, so chances are it would fall > > over in some way. The only one I can think of just now is that it might > > cause existing configurations to break. Making it an optional switch in > > inn.conf would help there though. > > It would make it hard to do wildcard catch-all stanzas, although I suppose > the switch would fix that too. Having two possible behaviors selected > with a switch would make it harder to explain, though, and readers.conf is > already pretty confusing. FWIW Graeme's idea is identical to mine (the one I was scared to voice in my original post) and like him I haven't thought it through (lack of time is my excuse). Gut feel is that it could work well. I have more than a sneaking suspicion however that someone good at set theory could have a right good laugh at this - then maybe say "here's how you do it guys"... With regard to readers.conf being confusing, my own experience is that reading the man page *properly* is *essential*, but that done it all clicks into place very nicely. Best regards Bill Allison
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads