Article View: news.software.nntp
Article #48974Authentication using perl hooks in INN 2.3.1
From: Tim Pennick
Date: Mon, 30 Oct 2000 16:40
Date: Mon, 30 Oct 2000 16:40
39 lines
2812 bytes
2812 bytes
Hi All, For anyone who's been reading my missives on the subject of authentication using perl hooks, it may be of help/interest to know that the problem I was having was due to a bug in INN-2.3.0, which has been fixed in INN-2.3.1 (stabel prerelease versions since August 17th), and much thanks to the bug fixers for this. However, I'm not out of the woods yet, and I still suspect that I may have got the wrong end of the stick in terms of understanding the way this is supposed to work. The result of the bug-fix is that if the nnrpd code calls the perl 'authenticate' function, and I set things up so this returns a 5 element array containing the elements: 200,1,1,*,0, then all newsgroups are accessible, as they should be. What I'm trying to achieve. Access to most groups will be achieved via host/ip address matching. However there will be some newsgroups which will only be available to users who have password access to that group. The 'authenticate' function has at its disposal an array containing the username, password, ipaddress, and hostname, of the client/user. Unfortunately it doesn't include the name of the group that the user is attempting to access. I don't want users to be asked for a password unless they attempt to access one of the password protected groups. I originally had a go at using the readers.conf mechanism, but this seemed not to fit this scenario, and at the time Russ recommended that I should have a look at the perlhooks. However, I can't think of any way to get this to work as given the info passed to 'authenticate' you can't take action based on what the user is trying to access. I'd be really grateful if someone could tell me where I'm going wrong. Regards, Tim Pennick
Technical Details
Message-ID:
<slrn8vr949.2j0.tpennick@extra.axion.bt.co.uk>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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-feed2!btnet!bt !tpennickShow Full Headers
Complete Article Headers
Message-ID: <slrn8vr949.2j0.tpennick@extra.axion.bt.co.uk> Subject: Authentication using perl hooks in INN 2.3.1 Date: Mon, 30 Oct 2000 16:40:01 +0000 From: tpennick@extra.axion.bt.co.uk (Tim Pennick) 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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-feed2!btnet!bt !tpennick Newsgroups: news.software.nntp Organization: BT Adastral Park, Martlesham Heath, Ipswich, UK Lines: 38 Reply-To: Tim Pennick <tpennick@axion.bt.co.uk> NNTP-Posting-Host: extra.axion.bt.co.uk X-Trace: pheidippides.axion.bt.co.uk 972924001 12050 132.146.88.22 (30 Oct 2000 16:40:01 GMT) X-Complaints-To: postmaster@axion.bt.co.uk NNTP-Posting-Date: 30 Oct 2000 16:40:01 GMT User-Agent: slrn/0.9.6.3 (SunOS)