🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48821

Re: Authenticating with perl hooks

#48821
From: Russ Allbery
Date: Thu, 19 Oct 2000 00:00
39 lines
2307 bytes
Tim Pennick <tpennick@extra.axion.bt.co.uk> writes:

> Sorry Russ, I AM using 2.3.

Ah!  Then in that case this should be easier.

> Maybe its the references to nnrp.access that threw you of the scent.

Yup.

> This is the file that the example nnrpd_auth.pl file uses, and so I have
> re-instated it, as (if I understand correctly), readers.conf is disabled
> when you switch on NNRP_PERLAUTH in inn.conf.

Nothing looks at nnrp.access in 2.3 no matter what you do.

I believe that if you turn in nnrpperlauth, your Perl authentication stuff
is the *only* thing that's used.  That means that any IP-based
restrictions or the like you need to handle in your authenticate function.
I don't use the nnrp Perl authentication stuff, so I could be wrong, but
that was my understanding.

> Whatever happens within the 'authenticate' function, (assuming perl
> authentication is switched on and readers.conf is therefore ignored) if
> the authenticate function responds with "200 1 1 * 0" to a call which
> passed the 'connect' rather than 'authenticate' type attribute, the
> client should have full access to the groups carried by the server.

That's correct.

> I can't get this bit working as no groups are visible at all.

Okay, I can't see what could possibly be going wrong here.  Could you post
this section of your authenticate sub?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylr95cpsq7.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
References: <slrn8uouuj.5vv.tpennick@extra.axion.bt.co.uk> <yl1yxfxtym.fsf@windlord.stanford.edu> <slrn8uriqb.5to.tpennick@extra.axion.bt.co.uk> <ylem1em3jk.fsf@windlord.stanford.edu> <slrn8uu2r6.405.tpennick@extra.axion.bt.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <ylr95cpsq7.fsf@windlord.stanford.edu>
Subject: Re: Authenticating with perl hooks
Date: Thu, 19 Oct 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <slrn8uouuj.5vv.tpennick@extra.axion.bt.co.uk> <yl1yxfxtym.fsf@windlord.stanford.edu> <slrn8uriqb.5to.tpennick@extra.axion.bt.co.uk> <ylem1em3jk.fsf@windlord.stanford.edu> <slrn8uu2r6.405.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-mail
X-Deja-AN: 683504764
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
Newsgroups: news.software.nntp