Article View: news.software.nntp
Article #55391PW Auth, Inn 2.3.2
From: Elizabeth Zaenger
Date: Wed, 28 Nov 2001 19:47
Date: Wed, 28 Nov 2001 19:47
91 lines
3680 bytes
3680 bytes
I am struggling with password authentication in INN 2.3.2. I currently
allow read/post to all users coming from certain domains, without any
authentication. I want to continue doing this, but also allow anyone coming
from any other place not mentioned in the specific domains the chance to
authenticate first, and then read/post.
Here is my current readers.conf:
auth "eecs.umich.edu" {
key: umich
hosts: "*.eecs.umich.edu"
default: "<user>"
default-domain: "eecs.umich.edu"
}
...<several more domains listed exactly like this with key: umich >
auth "192.138.*" {
key: outside
hosts: "*.kettering.edu"
default: "<user>"
default-domain: "kettering.edu"
}
...<several more domains listed exactly like this with key: outside >
access "inside-umich" {
key: umich
users: *
newsgroups: "*"
access: "RP"
}
access "outside-umich" {
key: outside
users: *
newsgroups: "*,!fedreg,!clari"
access: "RP"
}
For the password access, I've added this:
auth "users-outside" {
key: pw-access
auth: "ckpasswd -f /news/etc/password/news-passwords"
}
access "users-outside" {
key: pw-access
newsgroups: *
access: "RP"
virtualhost: true
pathhost: news.eecs.umich.edu
domain: eecs.umich.edu
}
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.
When I had the auth block for "pw-access" at the top of the auth list,
the news reader from an outside machine said
"503 NNTP server unavailable. Try later."
and my logs said
"domain parameter(users-outside) in readers.conf must be different from the one in inn.conf"
If the outside machine connected directly to port 119, it was open
for read/post w/o authentication, however. I also got this message in my
logs from some random machine trying to connect, which makes me think the
authentication was working on some level:
"nnrpd[3326]: i110-187.nv.iinet.net.au connect
nnrpd[3326]: i110-187.nv.iinet.net.au auth_err ckpasswd: user guest does not exist.
nnrpd[3326]: i110-187.nv.iinet.net.au bad_auth"
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?
--
Elizabeth Zaenger, Unix Support
Departmental Computing Organization
University of Michigan, Electrical Engineering and Computer Science Dept.
Technical Details
Message-ID:
<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!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.eecs.umich.edu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <watoflmu174.fsf@che.eecs.umich.edu> Subject: PW Auth, Inn 2.3.2 Date: Wed, 28 Nov 2001 19:47:59 +0000 From: Elizabeth Zaenger <liz@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!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.eecs.umich.edu!not-for-mail Newsgroups: news.software.nntp Organization: University of Michigan Electrical Engineering and Computer Science Lines: 90 Sender: liz@che.eecs.umich.edu X-Trace: news.eecs.umich.edu 1006976869 2215 141.213.11.117 (28 Nov 2001 19:47:49 GMT) X-Complaints-To: news@eecs.umich.edu X-Newsreader: Gnus v5.7/Emacs 20.6