Article View: news.software.nntp
Article #78869Re: INN 2.4.3 Question on Authentication (AUTHINFO)
From: Julien ÉLIE
Date: Wed, 09 Apr 2008 20:54
Date: Wed, 09 Apr 2008 20:54
81 lines
3088 bytes
3088 bytes
Hi Tim,
> It sounds so simple, but I'm getting totally bogged down in the syntax
> of readers.conf. I can't even figure out whether I need two auth
> groups or just one!
With only your:
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
if someone is not authenticated, this auth block will fail and he
will not have access to your news server. Therefore, you also have
to add an "access not-authenticated" block like this one:
auth "not-authenticated" {
hosts: "*"
default: <LOCAL>
}
> access not-authenticated {
> users: "<LOCAL>*"
> read: "*"
> post: "!*"
> }
I do not know whether "not-authenticated" should be quoted but in case
something goes wrong, try to quote it.
> access authenticated {
> users "*, !<LOCAL>*"
> newsgroups: "*"
> }
Do not forget the colon after "users".
Why do you remove <LOCAL> here?
> Will that work, or am I completely up the spout?
I have not tested your blocks but I think they should work.
The one I use (thus it works) is the following:
auth "users" {
hosts: "*"
default: "<all>"
}
auth "users-ssl" {
hosts: "*"
auth: "ckpasswd -f /home/news/etc/users-ssl"
}
access "users" {
users: "<all>"
newsgroups: "*"
access: R
}
access "users-ssl" {
newsgroups: "*"
strippath: "true"
access: RPA
}
I sometimes like to put "key" parameters. And I am accustomed to using
"access" instead of "read"/"post".
--
Julien ÉLIE
« Le rire est une chose sérieuse avec laquelle il ne faut pas plaisanter. » (Raymond Devos)
Technical Details
Message-ID:
<ftjae7$q1d$1@news.trigofacile.com>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!demorgan.zen.co.uk!zen.net.uk!dedekind.zen.co.uk!news.side3.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mailReferences:
<qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <ftjae7$q1d$1@news.trigofacile.com> Subject: Re: INN 2.4.3 Question on Authentication (AUTHINFO) Date: Wed, 9 Apr 2008 22:54:15 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!demorgan.zen.co.uk!zen.net.uk!dedekind.zen.co.uk!news.side3.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 81 NNTP-Posting-Host: goret.via.ecp.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1207774471 26669 138.195.145.8 (9 Apr 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Wed, 9 Apr 2008 20:54:31 +0000 (UTC) In-Reply-To: <qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000