🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74169

Re: Multiple access authentication

#74169
From: John F. Morse
Date: Sat, 02 Sep 2006 03:35
158 lines
6955 bytes
Jeffrey M. Vinocur wrote:

>In article <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Users 1-100 have access to the "city.*" "county.*" and "state.*" groups 
>>Users 101-200 have access to only the "city.*" groups.
>>Users 201-300 have access to only the "county.*" groups.
>>Users 301-400 have access to only the "city.*" and "county.*"groups.
>>Users 401-500 have access to only the "city.*" and "state.*" groups.
>>Users 501-600 have access to only the "county.*" and "state.*" groups.
>>Anonymous users have access to only the "state" groups.
>>    
>>
>
>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. I'm considering moving the server back to 
port 119 from a "secret" port where it provided some security before 
authentication was initiated.

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

Finally, any new user who obtains authentication should have access to 
the same groups as the current authenticated users -- except the 
original five newsgroups. I don't think the original posters would want 
their five years worth of whatever read by whomever. IOW, I respect 
their privacy.

I would be the only person able to post in the l.info and l.announce 
groups, and the only person who can cancel messages, should Cleanfeed 
miss some filth (which it does). I have this figured out (I think) with 
innflags: -C in the inn.conf file. If the -C also stops me, I could 
always rm the offending article from the group in the spool, then let 
the nightly expiration fix whatever is needed.


>>I was thinking along the lines of several auth stanzas, each having a 
>>different "password" filename, such as:
>>    
>>
>
>This doesn't work, because only one auth block can be applied to
>a given connection.  You can have multiple auth: lines in a
>single auth block, but doing that with multiple `ckpasswd -f`
>lines is really no different from having them all in one big
>password file -- you have no way to tell which file the username
>was located in, so you can't switch on it.
>  
>


Understood.


>I believe you have three options:
>
>  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 is quick to set
>      up, but perhaps a little tedious to maintain over time,
>      since you have to update two different lists to add a new
>      user.
>  
>


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.

If I have many users and a line reaches => 8180 characters (plus 
commas), then could I use multiple users: lines, all within the same 
access block?

If not, could I duplicate the access block, with additional users in the 
users: line(s)?

(I see no info in the man pages for either of these ideas.)


>  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.  You could put them all in one
>      password file, and then do:
>
>        auth everybody {
>          hosts: *
>          auth: ckpasswd -f foo
>        }
>
>        access state {
>          users: *@state
>          groups: state.*
>        }
>
>        access all {
>          users: *@all
>          groups: *
>        }
>
>        etc
>
>      Of course, you can use whatever you want in the usernames;
>      it doesn't need to correspond to the names of the
>      hierarchies or the names of the access blocks, and it
>      doesn't need to be decipherable by the users.  This is easy
>      for you to maintain, but a bit inelegant in that it's
>      exposed to the users -- and if you wanted to give one user
>      more access rights later, you'd have to change his username
>      (and make him update it in his newsreader config).
>  
>


This doesn't sound like something I'd care to mess with, and it isn't 
secure since users can see the usernames.

You know the saying "Locks keep out honest people...." ;-)

Undesirables are usually good pickers of locks.


>  3.  The general-purpose solution is probably to use the Perl or
>      Python hooks.  But then you'd have to write a little
>      code...so hopefully one of the other ideas will help you.
>


A "little" code to you is a nightmare to me. ;-)

I sometimes can barely read Perl, just to get an idea of what is 
supposed to be happening. Today I learned what the MY local expr meant, 
previously thinking it meant "me" (ie referring to "INN" itself, and not 
a peer) when seeing it used in conf files. Now I know one and only one 
thing about Perl.

Maybe a volunteer will step up, or someone hungry for whom I can buy a 
steak dinner?

-- 
John
Technical Details
Message-ID: <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!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net> <eda9ah$gkj$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <c_6Kg.27458$5i3.18707@bgtnsc04-news.ops.worldnet.att.net>
Subject: Re: Multiple access authentication
Date: Sat, 02 Sep 2006 03:35:36 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net> <eda9ah$gkj$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!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <eda9ah$gkj$1@puck.litech.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 158
NNTP-Posting-Host: e736d18bf3e38a4ce8f94f5ce89954de
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1157168136
NNTP-Posting-Date: Sat, 02 Sep 2006 03:35:36 GMT