🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62790

Re: nnrpd_auth hooks and "A"pproved header access

#62790
From: Daniel
Date: Sun, 05 Jan 2003 00:23
38 lines
2710 bytes
> - In CURRENT (which will be released as 2.4 soon), there is
>   support for this in the Perl hook, using the perl_access
>   parameter (which allows the Perl hook to dynamically generate
>   an access block that can contain any field a regular access
>   block does).
> 
>   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.

> - Are you sure you need to use the Python hook?  Would writing a
>   readers.conf authenticator *in* Python suffice for your needs?
>   (The benefits of the Perl/Python hooks that come to mind are
>   that they can easily maintain state between users for things
>   like limiting simultaneous connection by one user, and permit
>   dynamic generation of the list of groups to be accessed.  If
>   you're only verifying usernames/passwords in some fashion, you
>   can probably work just fine with a standalone authenticator.  I
>   have some documentation on the interface if this sounds useful.)

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.

> 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?  I don't think I have any other choice at this point,
though, until 2.4.

Thanks a lot for your help,
~ Daniel
Technical Details
Message-ID: <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!postnews1.google.com!not-for-mail
References: <1d4cf4c3.0301031253.34e8d3b5@posting.google.com> <av4tu4$9ga$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <1d4cf4c3.0301041623.6d8534e6@posting.google.com>
Subject: Re: nnrpd_auth hooks and "A"pproved header access
Date: Sun, 05 Jan 2003 00:23:56 +0000
From: backwardthinker@juno.com (Daniel)
References: <1d4cf4c3.0301031253.34e8d3b5@posting.google.com> <av4tu4$9ga$1@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!postnews1.google.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://groups.google.com/
Lines: 37
NNTP-Posting-Host: 65.32.201.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1041726236 1616 127.0.0.1 (5 Jan 2003 00:23:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Jan 2003 00:23:56 GMT