🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51321

Re: I can make passwords, now...

#51321
From: Jeffrey M. Vinocur
Date: Mon, 19 Mar 2001 18:00
111 lines
4731 bytes
In article <m3snkdt0wy.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>jmv16@cornell.edu (Jeffrey M. Vinocur) writes:
>
>Um, here one would be able to have different newsreaders files in
>/news/db?  The perl script could be modified to generate different
>files for each auth. set.  Say all readers of x set of hieararchies,
>then another file for all readers of y set of hiearchies?

To clarify:  you want to have a little script that generates a
set of password files, and then give access based on which file
the user was found in?

Two problems:
- "Generate" might be a bit hard, because you need to assign
  passwords.
- You're missing the point -- unless there is no pattern to your
  userids, even when fully-qualified, you want to use that as the
  basis for authentication.  You assign an identity, and then
  have access blocks that match different groups of users.


>Okay, like using Megapop, to a certain extent.

...no idea...
 

>key would be for this block of users who can only read these
>hieararchies?  

Err...is the manpage really that bad?  key: is used to make sure
that a given auth block and access block correspond.  That is, an
access block with key: foo is only considered for matching a
given incoming connection iff the auth block that assigned the
identity had key: foo. (The idea, though, is to avoid it if at
all possible.)


>> auth "foreign" {
>>     hosts: *
>>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>>     default: "<FAIL>"
>> }
>
>If I understand this, if the person coming in from a foreign server
>failed to be in any of the known newsusers password files, then he or
>she wouldn't go further?

Mmm, I believe that he would be assigned the identity "<FAIL>"
which we then trap later on.


>In my case, then nobody who has a shell account on one machine should
>use the same password for authenticating to the news server since all
>the users are coming from elsewhere (and the logins on my shell
>machine are all ssh).

Well, you can use SSL to encrypt the connections, and have nnrpd
with a separate config file on the nntps port (563).


>> auth "internalnet" {
>>     hosts: "192.168.0.0/16,marduk.litech.org"
>>     res: "ident -t"
>>     auth: "pamckpasswd"
>>     auth: "ckpasswd -f /usr/local/news/db/newsusers"
>>     auth: "ckpasswd -f /usr/local/news/db/foo_users"
>>     default: "<FAIL>"
>>     default-domain: "litech.org"
>> }
>
>But this could work for account on pyrophore going to paradoxa, if I
>wanted to do that, right?

What?


>>     newsgroups: "!foo.*,*"
>
>Exclusions first?  Or does this matter?

Hmm.  Looking at the code, I think it's
first-matching-pattern-found.  That is, if there are several
patterns separated by commas, it tries them in order looking for
one which matches, and then says yes/no based on whether there
was a ! preceding.


>> access "fail" {
>>     users: "<FAIL>,<FAIL>@litech.org"
>>     read: "!*,litech.test"
>>     post: "!*"
>> }
>
>You put fail at the end?  And this would cover all the categories that
>didn't authenticate to one or another list?

Auth blocks and access blocks are quite separate.  First we
assign an identity using the auth blocks.  If someone failed to
authenticate, the default identity of <FAIL> kicked in.  Then we
find the matching access block, starting from the bottom.  So the
fail group matches the user <FAIL>, but any other user continues
up to be matched against the other blocks.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <995hgd$ge6$1@marduk.litech.org>
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!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
References: <m33dcdyrvf.fsf@pyrophore.ogoense.net> <98uotv$b8$1@marduk.litech.org> <m3snkdt0wy.fsf@pyrophore.ogoense.net>

Show Full Headers
Complete Article Headers
Message-ID: <995hgd$ge6$1@marduk.litech.org>
Subject: Re: I can make passwords, now...
Date: Mon, 19 Mar 2001 18:00:45 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <m33dcdyrvf.fsf@pyrophore.ogoense.net> <98uotv$b8$1@marduk.litech.org> <m3snkdt0wy.fsf@pyrophore.ogoense.net>
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!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 110
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 985024845 16838 128.84.154.54 (19 Mar 2001 18:00:45 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Mon, 19 Mar 2001 18:00:45 +0000 (UTC)
X-Newsreader: trn 4.0-test75 (Feb 13, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)