Article View: news.software.nntp
Article #83778Re: docheckgroups et al
From: Jeffrey M. Vinocur
Date: Tue, 04 Jan 2011 02:40
Date: Tue, 04 Jan 2011 02:40
33 lines
2404 bytes
2404 bytes
In article <ifs3em$s0q$1@n102.xanadu-bbs.net>,
John F. Morse <dont.bother> wrote:
>
>>> auth "localhost" {
>>> --- hosts: "stdin,localhost"
>>> +++ hosts: "stdin,localhost,*.my.net,192.168.*"
>>> auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
>>> default: "<localhost>"
>>> }
>>
>> I think 192.168.* should be written 192.168.0.0/16, and that it is OK
>> for *.my.net.
>
>Nothing I tried would work, including just the hostname, the FQDN, just
>the domain, the *my.net, the full IP, etc.
For future reference, your problem here is one of understanding
the readers.conf paradigm (that is, step one assign an identity
using the auth blocks, step two assign access based on the
identity). Here you have made an auth group that will match your
IP, but then you authenticate against the usual password file and
therefore have the usual identity assigned (that is, you do not
get the identity "<localhost>" because ckpasswd gives back a more
specific identity, namely whatever you authenticated as, and then
that matches the same access block it usually does).
(If you really wanted to do something like this, you could use
the key: parameter.)
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<ifu1aj$dq2$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <8o0elnFc0qU1@mid.individual.net> <ifs3em$s0q$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <ifu1aj$dq2$1@puck.litech.org> Subject: Re: docheckgroups et al Date: Tue, 04 Jan 2011 02:40:19 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <8o0elnFc0qU1@mid.individual.net> <ifs3em$s0q$1@n102.xanadu-bbs.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 33 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1294108819 14146 204.16.242.142 (4 Jan 2011 02:40:19 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Tue, 4 Jan 2011 02:40:19 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)