🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62800

Re: nnrpd_auth hooks and "A"pproved header access

#62800
From: Jeffrey M. Vinocur
Date: Sun, 05 Jan 2003 03:24
56 lines
3285 bytes
In article <1d4cf4c3.0301041623.6d8534e6@posting.google.com>,
Daniel <backwardthinker@juno.com> wrote:
> 
>>   Similar functionality for Python is in the works, but I
>>   understand is behind a bit of a roadblock at the moment.
>
>Understandable, more developers probably work with perl.

Well, it's not even that.  Erik (who did the nifty Perl stuff
recently) also did the same for Python, but there's something odd
going on when support for both is compiled in.  So until we track
that down, the Python improvements are on hold.


>> - Are you sure you need to use the Python hook? [...]
>
>This sounds interesting, but I think I need the hook.  nnrpd_auth.py
>was enforcing some ACLish like rules, with users and priveledges
>varying from group to group.  So my guess is, the authenticator alone
>won't cut it.

Yup, I'd say you're right.  (A lot of people started using the
Perl hook pre-2.3, when it was the only way to do any remotely
complex authentication.  With the introduction of readers.conf,
I'm not sure people realize that that is no longer the case.  So
I wanted to be sure.)


>> Of course, if you just want to allow all your users to be able to
>> approve posts, you could patch the source easily enough.
>
>Only a process using inews on the host should be allowed to approve
>posts, but it sounds like since I need the hook, I'll have to change
>the default access block to allow approving.  Unless you can see some
>way around that?

Ho hum.  I can think of different places you could hack at it,
but I'm not sure it's worth the trouble.  Note that up through
2.3.2, all users were always allowed to approve posts.  So unless
you actually anticipate abuse, it's probably no big deal.  (Note
that most GUI newsreaders make it pretty hard to add Approved
headers in the first place.)


>I don't think I have any other choice at this point,
>though, until 2.4.

Are you happy switching to the Perl hook?  What you can download
as a nightly snapshot at the moment is quite similar to what will
become 2.4, and so you might consider working with that.  (Many
people do run versions from the CURRENT tree.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <av88gr$vbm$2@puck.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
References: <1d4cf4c3.0301031253.34e8d3b5@posting.google.com> <av4tu4$9ga$1@puck.litech.org> <1d4cf4c3.0301041623.6d8534e6@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <av88gr$vbm$2@puck.litech.org>
Subject: Re: nnrpd_auth hooks and "A"pproved header access
Date: Sun, 05 Jan 2003 03:24:11 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <1d4cf4c3.0301031253.34e8d3b5@posting.google.com> <av4tu4$9ga$1@puck.litech.org> <1d4cf4c3.0301041623.6d8534e6@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!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 55
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1041737051 32118 66.218.0.75 (5 Jan 2003 03:24:11 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 5 Jan 2003 03:24:11 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)