Article View: news.software.nntp
Article #55440Re: PW Auth, Inn 2.3.2
From: Jeffrey M. Vinocur
Date: Sun, 02 Dec 2001 22:33
Date: Sun, 02 Dec 2001 22:33
95 lines
3830 bytes
3830 bytes
In article <watoflmu174.fsf@che.eecs.umich.edu>,
Elizabeth Zaenger <liz@eecs.umich.edu> wrote:
>
>I am struggling with password authentication in INN 2.3.2.
:-) Yeah, it happens. If you work on it long enough,
enlightenment will come. (You'll know because you don't feel the
need to use key: for everything.)
But in the meantime, let's see if we can help you...
> auth "192.138.*" {
You know that the string after auth is just a comment, right?
> access: "RP"
You don't need to do this; read and post is the default if you
use newsgroups: (instead of separate read: and post: lines). In
fact, access: is deprecated.
> newsgroups: "*,!fedreg,!clari"
Uh, this needs to be "*,!fedreg.*,!clari.*" for it to do what you
want it to.
> auth "users-outside" {
> key: pw-access
> auth: "ckpasswd -f /news/etc/password/news-passwords"
> }
Ok, that looks fine, I think.
I can never remember what behavior you get on a failed
authentication, so I do "default: <FAIL>" and have an access
block with the same key, "users: <FAIL>", and "newsgroups: !*",
just in case. (That goes at the end of the file.)
> access "users-outside" {
> key: pw-access
> newsgroups: *
> access: "RP"
> virtualhost: true
> pathhost: news.eecs.umich.edu
> domain: eecs.umich.edu
> }
Uh, do you need to use virtualhost here? It sounds like those
are your regular pathhost and domain.
>When I had the auth block for "pw-access" at the bottom of the auth list, it
>wasn't prompting for passwords, but was open to all machines, both inside
>the domain and outside the domain.
Are you sure? (I mean, I believe you; are you sure that's all
that you changed?) It should be at the top, anyway; although it
doesn't really matter since that's the only block with an auth:
line.
>"domain parameter(users-outside) in readers.conf must be different from
>the one in inn.conf"
Yeah, that's your virtualhosting, I think.
>If the outside machine connected directly to port 119, it was open
>for read/post w/o authentication, however.
Hrmrm. No arrangement of the blocks you gave should let that
happen.
>So, after reading the man page several times and going thru the "example" file,
>I'm stumped. What are the magic incantations to make this work?
Hehe. You're in the right place. The reason the responses are
slow is because readers.conf is relatively write-only -- once you
grok it, you can write one that's likely to work. (I
accidentally deleted mine -- which is relatively complicated --
once, and was able to recreate without any trouble.) But it's
really hard to look at a readers.conf and figure out what it
actually does.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<9uea70$m47$3@marduk.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<watoflmu174.fsf@che.eecs.umich.edu>Show Full Headers
Complete Article Headers
Message-ID: <9uea70$m47$3@marduk.litech.org> Subject: Re: PW Auth, Inn 2.3.2 Date: Sun, 02 Dec 2001 22:33:04 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <watoflmu174.fsf@che.eecs.umich.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Lithium Technologies Lines: 94 Sender: jeff@litech.org NNTP-Posting-Host: marduk.litech.org X-Trace: marduk.litech.org 1007332384 22663 128.84.154.54 (2 Dec 2001 22:33:04 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sun, 2 Dec 2001 22:33:04 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)