Article View: news.software.nntp
Article #48794Re: Authenticating with perl hooks
From: Tim Pennick
Date: Wed, 18 Oct 2000 00:00
Date: Wed, 18 Oct 2000 00:00
40 lines
2681 bytes
2681 bytes
With thanks to Russ for getting me over that hurdle, but as so often happens, it wasn't the final hurdle after all.... My authentication now works such that if I don't have a host field in nnrp.access that matches my reader client, I get the message (you aren't listed in my access file, goodbye" as I would expect. So that bit's working. Howevr, in cases where the host matches, and a telnet to port 119 succeeds, any attempt to access a newsgroup fails with the information that there is no such newsgroup. 'list active' or 'list newsgroups' returns no information, and no error. my 'authenticate' function returns an array containing the following values: "200 1 1 * 0". If I switch nnrpperlauth to false in inn.conf, all my newsgroups become available. Its just occurred to me that I may have misunderstoo the functionality. Using the amended example supplied in ..../news/bin/filter/nnrpd_auth.pl, I assumed that my nnrp.access file should carry the 'broadbrush' access restrictions. If a user tries to gain access to a group to which this file doesn't give them access, I assumed that nnrp would issue a "Needs Authorisation" to the client, which would then reply with an authinfo, which as I understand it, supplies the user/password information. This is then pased to a new call to 'authenticate', with the type attribute set to 'authenticate" rather than 'connect'. This would then query the users.cdb file in the case of the example I'm using. If this is the way things are supposed to work, I shouldn't have any problem accessing any newsgroup as I have * access. If anyone could give me any hints or pointers or clear up any obvious misunderstandings I'd be grateful. Many thanks once again Tim Pennick
Technical Details
Message-ID:
<slrn8uriqb.5to.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!not-for-mailReferences:
<slrn8uouuj.5vv.tpennick@extra.axion.bt.co.uk> <yl1yxfxtym.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn8uriqb.5to.tpennick@extra.axion.bt.co.uk> Subject: Re: Authenticating with perl hooks Date: Wed, 18 Oct 2000 00:00:00 +0000 From: tpennick@extra.axion.bt.co.uk (Tim Pennick) References: <slrn8uouuj.5vv.tpennick@extra.axion.bt.co.uk> <yl1yxfxtym.fsf@windlord.stanford.edu> 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!not-for-mail X-Deja-AN: 682940860 X-Complaints-To: postmaster@axion.bt.co.uk X-Trace: pheidippides.axion.bt.co.uk 971885348 8444 132.146.88.22 (18 Oct 2000 16:09:08 GMT) Organization: BT Adastral Park, Martlesham Heath, Ipswich, UK User-Agent: slrn/0.9.6.3 (SunOS) Reply-To: Tim Pennick <tpennick@axion.bt.co.uk> NNTP-Posting-Date: 18 Oct 2000 16:09:08 GMT Newsgroups: news.software.nntp