Article View: news.software.nntp
Article #62726Re: nnrpd_auth hooks and "A"pproved header access
From: Jeffrey M. Vinocur
Date: Fri, 03 Jan 2003 21:05
Date: Fri, 03 Jan 2003 21:05
44 lines
2710 bytes
2710 bytes
In article <1d4cf4c3.0301031253.34e8d3b5@posting.google.com>, Daniel <backwardthinker@juno.com> wrote: >Inn 2.3.3, standalone news server, using nnrpd_auth.py (not >readers.conf). > >Is there an equivalent to "access: A" in readers.conf using the >nnrpd_auth.py hook? Sadly, I don't think so. Two thoughts, though: - 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. - 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.) >I even tried temporarily adding [...] to readers.conf Right, in 2.3 you have to use the hooks *instead* of readers.conf. We're moving towards being able to use them simultaneously (this is the perl_access stuff I discussed above). Of course, if you just want to allow all your users to be able to approve posts, you could patch the source easily enough. -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<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!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<1d4cf4c3.0301031253.34e8d3b5@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <av4tu4$9ga$1@puck.litech.org> Subject: Re: nnrpd_auth hooks and "A"pproved header access Date: Fri, 03 Jan 2003 21:05:08 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <1d4cf4c3.0301031253.34e8d3b5@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: 43 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1041627908 9738 66.218.0.75 (3 Jan 2003 21:05:08 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Fri, 3 Jan 2003 21:05:08 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)