Article View: news.software.nntp
Article #52248Re: authentication in inn 2.3.1
From: Russ Allbery
Date: Tue, 08 May 2001 19:11
Date: Tue, 08 May 2001 19:11
60 lines
2441 bytes
2441 bytes
Andrzej Kwiatkowski <szerpcho@poczta.onet.pl> writes:
> I want to have an access from localhost to all groups, and from any
> other host other than localhost to all groups except control* and junk.
> My readers.conf looks like :
> auth "localhost" {
> hosts: "localhost, 127.0.0.1"
> default: "*"
> }
This assigns the literal identity string "*" to localhost connections.
> access "localhost" {
> newsgroups: "*"
> users: "*"
> }
This lets everyone read everything, but it's then overridden by your later
access stanza.
First point: Later entries that match the same thing as earlier entries
override them.
Second point: The bit in quotes after "auth" or "access" is for
documentation purposes only and isn't used by INN at all.
Third point: The default: parameter sets the literal user identity
string; it isn't a wildmat expression.
Something very close to what you want is already in the man page for
readers.conf, but what you want is probably:
auth localhost {
hosts: "localhost, 127.0.0.1"
default: <localhost>
}
auth users {
hosts: *
auth: "ckpasswd -d /usr/local/news/db/newsusers"
}
access users {
users: *
read: "*,!control*,!junk*"
post: "*,!control*,!junk*"
}
access localhost {
users: <localhost>
newsgroups: *
}
--
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:
<ylg0efslkk.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.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<9d966d$bsr$1@news.tpi.pl>Show Full Headers
Complete Article Headers
Message-ID: <ylg0efslkk.fsf@windlord.stanford.edu> Subject: Re: authentication in inn 2.3.1 Date: Tue, 08 May 2001 19:11:07 +0000 From: Russ Allbery <rra@stanford.edu> References: <9d966d$bsr$1@news.tpi.pl> 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!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 59 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 989349067 16284 171.64.13.23 (8 May 2001 19:11:07 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)