🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51289

Re: I can make passwords, now...

#51289
From: Rebecca Ore
Date: Sat, 17 Mar 2001 05:33
140 lines
5701 bytes
jmv16@cornell.edu (Jeffrey M. Vinocur) writes:

> In article <m33dcdyrvf.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >
> >Given what I'm already using, how would I modify this, say, to have
> >the person log in with user name and password and read the same
> >restricted 
> 
> I had an awful readers.conf to start, until I finally grokked
> that auth blocks and access blocks need not (and probably should
> not) correspond one-to-one.  You want to assign an incoming
> connection a user id, using whatever means is appropriate -- the
> idea is that a given user gets the same id regardless of
> connection method.  Then you assign access based on user id.  

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?


> 
> In a sane scheme, the sets of people you want to put in different
> reader brackets will have distinguishable user ids.  Note that
> the password file can have fully-qualified (i.e., user@host)
> names which is very useful.

Okay, like using Megapop, to a certain extent.

> 
> I've got something like this, where the idea is that users with
> shell accounts get essentially full access no matter how they
> choose to connect, and some other users get access only to a
> local hierarchy "foo".  (This is easy because the foo users all
> have easily-recognized identities -- if they didn't we would put
> the "ckpasswd -f foo_users" in a separate block and use "key:" to
> make the foo access block matched them and only them.)

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


> (Russ...is this a useful example?  I can stick it on the web
> or whatever.)
> 
> ---BEGIN---
> # This gets the generic inbound connections.
> 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?



> # This matches trusted hosts, we try to resolve them using
> # `ident` first, if that fails or they want to use another
> # account, they can send username/password to be validated
> # against several databases until one matches.  Since we trust
> # the wires, we allow cleartext authentication against the system
> # password database using Graeme Mathieson's `pamckpasswd`.

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).


> 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?

> # At this point user ids are assigned correctly.  Some users have
> # their @litech.org identity, others got an identity based on the
> # password files (in the "newsusers" password file, some users
> # have a random identity and some have user@litech.org associated
> # with a plaintext/news-only password for coming in over insecure
> # networks).
> 
> # Get the random other users first
> access "nonlitech" {
>     users: "*"
>     newsgroups: "!foo.*,*"
> }

Exclusions first?  Or does this matter?


> # People for private hierarchy
> access "foo" {
>     users: "*@foo.example.com"
>     virtualhost: "true"
>     pathhost: foo.example.com
>     newsgroups: "!*,foo.*"
> }
> 
> # Trap failures
> 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?




> ---END---
> 
> 
> >        access: "Read Post"
> 
> FYI, access: is deprecated...if you use newsgroups: you get
> reading and posting, if you want to separate that functionality
> you can use read: and post: with different patterns.  Really the
> only thing access: ought to be used for is the other flags (for
> newnews and Approved headers).

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Technical Details
Message-ID: <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!nntp.upenn.edu!news.misty.com!paradoxa.ogoense.net!not-for-mail
References: <m33dcdyrvf.fsf@pyrophore.ogoense.net> <98uotv$b8$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <m3snkdt0wy.fsf@pyrophore.ogoense.net>
Subject: Re: I can make passwords, now...
Date: Sat, 17 Mar 2001 05:33:17 +0000
From: Rebecca Ore <rebecca@ogoense.net>
References: <m33dcdyrvf.fsf@pyrophore.ogoense.net> <98uotv$b8$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!nntp.upenn.edu!news.misty.com!paradoxa.ogoense.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Rebecca's
Lines: 139
Sender: rebecca@pyrophore.ogoense.net
NNTP-Posting-Host: Mw22315.paradoxa.ogoense.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: paradoxa.ogoense.net 984807198 22315 Mw22315.paradoxa.ogoense.net (17 Mar 2001 05:33:18 GMT)
X-Complaints-To: abuse@ogoense.net
Mail-Copies-To: never