🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Tim Pennick Mon, 30 Oct 2000 16:40
Authentication using perl hooks in INN 2.3.1
#48974
Author: Tim Pennick
Date: Mon, 30 Oct 2000 16:40
39 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads