🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48780

Re: Authenticating with perl hooks

#48780
From: Russ Allbery
Date: Tue, 17 Oct 2000 00:00
23 lines
1748 bytes
Tim Pennick <tpennick@extra.axion.bt.co.uk> writes:

> I'm slowly getting to grps with authentication using the sample
> nnrp_auth.pl provided.  However, I nearly fell at what I hope is almost
> the final hurdle, as the sample code returns an array with 4 elements,
> whereas the code of nnrpd seemed to be expecting 5.  I confirmed my
> suspicions when I discovered the readme.perl_hook file, which is
> contradictory as to whether 4 or 5 elements should be returned.  In the
> paragraph which calls for 5 elements, the documentation states that the
> 5th element should be a number denoting the maximum data transfer rate
> between client and server.

> Does anyone know if this value is used for anything or is just a dummy
> value?  If it is used, what is a reasonable value for it if I don't want
> to limit the transfer rate, i.e. do I just set it to the biggest number
> I can think of?

It's used, but you can return 0 to allow an unlimited transfer rate.

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

Technical Details
Message-ID: <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
References: <slrn8uouuj.5vv.tpennick@extra.axion.bt.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <yl1yxfxtym.fsf@windlord.stanford.edu>
Subject: Re: Authenticating with perl hooks
Date: Tue, 17 Oct 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <slrn8uouuj.5vv.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: 682538749
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