Article View: news.software.nntp
Article #72142Re: need some help with INN authenticication and readers.conf...
From: Russ Allbery
Date: Tue, 09 Aug 2005 14:41
Date: Tue, 09 Aug 2005 14:41
77 lines
3908 bytes
3908 bytes
Christian Hoffmann <brcwcs@gmx.net> writes:
> Maybe it is too obvious for native speakers, but I'm afraid I need it
> more verbose. My problem in understanding the manpage is like some folks
> write "... use <name>@<domain>.<tld>" and actually mean "... use
> helmut@brcwcs.org".
This is a good point, and I should perhaps change the readers.conf
examples to use something other than <FAIL>. In general, in all of the
INN documentation, anything in angle brackets is a variable that you
replace with your own value. <FAIL> in the readers.conf documentation,
however, is an explicit string, although it's not special in any way other
than being used in the example. You can replace it with something else
and everything will work the same (provided that you replace both
instances), but the intention is to use a string that will never be used
as a username.
> Is e.g. "<FAIL>" reserved somehow or can I also use
> "<SOMETHING_ELSE>"?
You can also use <SOMETHING_ELSE>.
> I would not ask this stupid question if my readers.conf (it's indeed the
> modified example, but I try to force users to authenticicate against a
> separate password file...) would be working as expected:
> ---------------------------------------------------------------------
> # Default authorization: None
> auth "default" {
> default: "<FAIL>"
> default-domain: "brcwcs.org"
> }
> # if e.g. helmut tries to login from the physical
> # intranet he is assigned the identity "helmut@intranet.brcwcs.org"
> auth "intranet" {
> hosts: "192.168.110.0/24"
> auth: "ckpasswd -d /home/news/readers_intranet.auth"
> default: "<FAIL>"
> default-domain: "intranet.brcwcs.org"
> }
> # folks from the intranet are allowed everything
> # on all newsgroups
> access "intranet" {
> users: "*@intranet.brcwcs.org"
> newsgroups: "*"
> access: "RPA"
> {
> # all others are allowed nothing
> access "fail" {
> users: "<FAIL>@*"
> newsgroups: "!*"
> }
> ---------------------------------------------------------------------
> Result: Helmut is asked for a password. The password is accepted but
> helmut is allowed nothing. I have never been prompted for a password
> and allowed everything.
Hm, I don't see anything obviously wrong with the above, although note
that no one outside of the IP range in intranet will ever be allowed
access.
In particular, I don't see how you would get access to read groups on that
server without specifying a password.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87acjr41g2.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<3lr48bF13hc32U1@individual.net> <dd9r4n$96r$1@puck.litech.org> <3lric7F13u75rU1@individual.net>Show Full Headers
Complete Article Headers
Message-ID: <87acjr41g2.fsf@windlord.stanford.edu> Subject: Re: need some help with INN authenticication and readers.conf... Date: Tue, 09 Aug 2005 07:41:49 -0700 From: Russ Allbery <rra@stanford.edu> References: <3lr48bF13hc32U1@individual.net> <dd9r4n$96r$1@puck.litech.org> <3lric7F13u75rU1@individual.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 77 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1123598509 4607 171.64.19.147 (9 Aug 2005 14:41:49 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux) Cancel-Lock: sha1:3uCy0k5hma4AEwK4QRe4qFW1FWw=