🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74172

Re: Multiple access authentication

#74172
From: Jeffrey M. Vinocur
Date: Sat, 02 Sep 2006 20:30
94 lines
4807 bytes
In article <c_6Kg.27458$5i3.18707@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Jeffrey M. Vinocur wrote:
>
>>Okay, I see what you want.
>
>It was an attempt to show I need anonymous people to be able to read a 
>new "local.info" group so they can obtain information on how to obtain 
>authentication via e-mail.

It would've been better if you'd just said what you wanted in the
first place, btw.


>Then I wanted the current authenticated users to have total access 
>(except control and control.*, plus read-only for the local.info and the 
>current local.announce groups).

Okay, about how many users is this?


>I would be the only person able to post in the l.info and l.announce 
>groups,

I think the best way to do this is to make them moderated, rather
than trying to force it into readers.conf.


>I have this figured out (I think) with innflags: -C in the
>inn.conf file. If the -C also stops me [...]

Yes, no cancel messages will be processed when you use -C, no
matter who they're from.  It's fine to do it that way, but
instead of just deleting the articles from the spool, I'd
recommend using `ctlinnd cancel` (since it will update the
history file, and also just requires the Message-ID rather than
locating the actual file).

The other thing you could do is configure Cleanfeed to drop
cancel messages from anyone besides you.


>>  1.  If you don't mind keeping the user list in one place and
>>      the grouping information separate, and you have a
>>      relatively small number of users, you can just do one
>>      password file, one auth block, and then a bunch of access
>>      blocks each one with a users: line listing all of the users
>>      that should match that access block.
>
>This might work, but could end up a lot of work.
>
>A growing password file of inactive people is not as important as a 
>growing readers.conf file's access block(s), with their 8191 (8180) 
>character limitation on one line only.

Right.  That's why the "small number of users" caveat above.

You can't use multiple users: lines per block or duplicate the
block entirely, as far as I know.  The conf parser does support
the use of \ but taking a quick glance at the source, I don't
being able to backslash-escape newlines helps you in this
situation.

If you're a small amount over, you could certainly change the
appropriate part of options.h and recompile, but that doesn't
help if your list is going to keep going.

Anyway, to get back to what I was alluding to above, if your
(already defined and unchanging) list of -original- users is
small enough to fit in readers.conf, you can do a variation of
what I was describing where you list them, and list yourself, and
then everybody else falls into a wildcard group.  Would that
work?


>>  2.  If your needs are simple enough that you can encode the
>>      grouping information in the username somehow, and don't
>>      mind exposing that to your users, you can just do one auth
>>      block and multiple access blocks with wildcards.  Like,
>>      your users would be bob@all, jimmy@state, mary@state,
>>      sam@county, and so on.
>
>This doesn't sound like something I'd care to mess with, and it isn't 
>secure since users can see the usernames.

It is secure, actually.  The entire username, including the part
at the end, is in the password file, and so the user can only
authenticate using the entire thing.  Simply changing the suffix
and using the same password would result in Access denied.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <edcplt$i89$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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news.glorb.com!news.litech.org!not-for-mail
References: <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net> <eda9ah$gkj$1@puck.litech.org> <c_6Kg.27458$5i3.18707@bgtnsc04-news.ops.worldnet.att.net>

Show Full Headers
Complete Article Headers
Message-ID: <edcplt$i89$1@puck.litech.org>
Subject: Re: Multiple access authentication
Date: Sat, 02 Sep 2006 20:30:53 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net> <eda9ah$gkj$1@puck.litech.org> <c_6Kg.27458$5i3.18707@bgtnsc04-news.ops.worldnet.att.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news.glorb.com!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 94
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1157229053 18697 66.218.0.75 (2 Sep 2006 20:30:53 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sat, 2 Sep 2006 20:30:53 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)