🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Mason Sin-Fai Leung Thu, 15 Apr 2004 00:37
force password
#68987
Author: Mason Sin-Fai Leung
Date: Thu, 15 Apr 2004 00:37
8 lines
1628 bytes
Hi all,

Is there a way to force the users to supply a login and password when they
connect to inn?  I know with perl_auth in reader.conf can authenticate
users and with perl_access, I can create access group on the fly.  I have a test script with access() defined.  If I connect to inn with a login and password, 
I can print out the %attributes hash to a file.  If I connect without a login and password, nothing gets printed and I have an empty file.  It looks like the script is called, but stop when it tries to access %attributes.  Aside from my prevoius question, what happen to access() if %attributes is not defined?  Thanks!!

ML  
Re: force password
#69002
Author: Jeffrey M. Vinocur
Date: Mon, 19 Apr 2004 09:49
34 lines
2207 bytes
In article <c5klfg$83m$1@woodrow.ucdavis.edu>,
Mason Sin-Fai Leung  <leungm@pc36.cs.ucdavis.edu> wrote:
>
>Is there a way to force the users to supply a login and password when they
>connect to inn?

If all the auth blocks in readers.conf have only auth: lines
(in other words, no res: and no default:) that match, then nnrpd
will return 480 to every command, which will cause most clients
to authenticate.

If a readers.conf auth block specifies an identity for an
anonymous connection, then the client will see whatever groups
that identity is permitted to.  The client can voluntarily
authenticate to obtain additional access.


>It looks like the script is called, but stop when it tries to
>access %attributes.

This seems unlikely.


>Aside from my prevoius question, what happen to access() if
>%attributes is not defined?  Thanks!!

Presumably whatever happens in any other Perl program if you try
to use a hash that's not defined.  However, I think %attributes
will always be defined whenever access() is called.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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