🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66513

Re: INND Authentication - One Username Multiple Groups Access

#66513
From: Jeffrey M. Vinocur
Date: Tue, 19 Aug 2003 11:30
44 lines
2607 bytes
In article <8294e830.0308190123.1fa49cc4@posting.google.com>,
Michael Jenkins <siku2001us@yahoo.com> wrote:
>
>I interpreted the man page as saying once an auth section was reached,
>it was the only one used for the user, therefore the user has a unique
>identity, this would be fine, if I could setup one *auth* section and
>unlimited *access* sections with users specified, however they have to
>be paired, so this approach doesn't work.  Per user access is really
>what I am looking for, but I am unsure how to approach this.  The
>reason I choose a hierachial access was I thought this was the only
>method to choose how separate users access groups.  Can you please
>provide some details on a user access approach?  Thanks in advance.

readers.conf describes a two-stage process.  First, exactly one
auth group is selected (based primarily on hosts:, and presence
of the appropriate one of auth:/res:).  That auth group is used
to determine an identity.  Then exactly one access group is
selected (based on primarily on users:).  That access group is
used to determine what groups can be read/posted/etc.

So maybe you just need something like this:

    auth password {
      hosts: *
      auth: ...
    }

    access general {
      users: "*"
      newsgroups: "public.*"
    }

    access restricted {
      users: "bob, sue, jane, *@admin.example.com"
      newsgroups: "*"
    }

With however many access groups you require.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <bht1or$gl$1@puck.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
References: <8294e830.0308180317.1ea09c43@posting.google.com> <bhqcuh$gte$2@puck.litech.org> <8294e830.0308190123.1fa49cc4@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <bht1or$gl$1@puck.litech.org>
Subject: Re: INND Authentication - One Username Multiple Groups Access
Date: Tue, 19 Aug 2003 11:30:35 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <8294e830.0308180317.1ea09c43@posting.google.com> <bhqcuh$gte$2@puck.litech.org> <8294e830.0308190123.1fa49cc4@posting.google.com>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 43
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1061292635 533 66.218.0.75 (19 Aug 2003 11:30:35 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Tue, 19 Aug 2003 11:30:35 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)