Article View: news.software.nntp
Article #74166Multiple access authentication
From: John F. Morse
Date: Fri, 01 Sep 2006 16:58
Date: Fri, 01 Sep 2006 16:58
76 lines
3410 bytes
3410 bytes
Is there a way to set up (readers.conf?) a method to authenticate groups
of users for multiple access rights, as opposed to restricting access to
just authorized and anonymous?
For instance:
Users 1-100 have access to the "city.*" "county.*" and "state.*" groups
(all groups on the server).
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.
In the above example, user numbers represent a list of authorized users,
of any size, and not a numerical list.
If necessary, the same username/password could appear in more than one
password list to allow access to multiple group hierarchies.
I was thinking along the lines of several auth stanzas, each having a
different "password" filename, such as:
auth "city" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/password_city"
default: "<anonymous>"
}
auth "state" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/password_county"
default: "<anonymous>"
}
etc.
This would obviously require multiple "password*" files. The access
stanzas are more difficult for me to grasp. Something along the idea of:
access "city" {
users: "*"
read: "city.*,!junk,!control,!control.c*,!control.n*,!control.r*"
post:
"city.*,!junk,!control,!control.c*,!control.n*,!control.r*,!local.announce"
}
access "county" {
users: "*"
read: "county.*,!junk,!control,!control.c*,!control.n*,!control.r*"
post:
"county.*,!junk,!control,!control.c*,!control.n*,!control.r*,!local.announce"
}
etc.
I have a feeling this won't work, and it sure looks overly complicated
for something that should be as simple as a netmask. ;-)
Could someone please supply an example configuration text for auth and
access stanzas (if readers.conf is the proper place for this) -- or a
better idea?
TIA.
--
John
Technical Details
Message-ID:
<UEZJg.6067$mY1.3609@bgtnsc05-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!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <UEZJg.6067$mY1.3609@bgtnsc05-news.ops.worldnet.att.net> Subject: Multiple access authentication Date: Fri, 01 Sep 2006 16:58:28 GMT From: "John F. Morse" <xanadu.bbs@invalid.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!wn14feed!worldnet.att.net!bgtnsc05-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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 76 NNTP-Posting-Host: 3182f3efa7c7ba3c28bd61627ba67846 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1157129908 NNTP-Posting-Date: Fri, 01 Sep 2006 16:58:28 GMT