Article View: news.software.nntp
Article #78884Re: INN 2.4.3 Question on Authentication (AUTHINFO)
From: Tim Fardell
Date: Thu, 10 Apr 2008 16:02
Date: Thu, 10 Apr 2008 16:02
59 lines
3021 bytes
3021 bytes
On Thu, 10 Apr 2008 15:12:54 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:
>> An error of myself. A "better" sample in the same idea of what I suggested
>
>You should obviously read:
> An error of mine. A "better" sample in the same idea as what I suggested
>
>
>Sorry for my Frenglish from time to time...
Don't apologise! Votre Anglais est bien mieux que mon Français!
I have tested the following on a "spare" Linux box, and it seems to
have the desired effect. In fact, I think it is pretty much the same
as the example I posted originally!
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
access not-authenticated {
users: "<LOCAL>*"
read: "*"
post: "!*"
}
access authenticated {
users: "*, !<LOCAL>*"
newsgroups: "*"
}
This does the following:
1. If a user connects without any authentication, they get assigned
the default name of <LOCAL>.
2. This then fails to match on "access authenticated" but matches on
"access not-authenticated" and gives them read-only access. Attempting
to post generates an "authentication required" error.
3. If the user connects and attempts to authenticate but fails, then
they also get the assigned <LOCAL>, and achieve read-only access in
the same way.
4. If the user authenticates successfully, then are assigned a name
based on the username provided in AUTHINFO.
5. Since the name is not <LOCAL>, this matches on "access
authenticated" and allows full read and post access.
I think :-)
It seems to work anyway :-)
Thanks to everyone for your input!
Now I just have to get pam_ldap working :-(
Tim.
--
Please remove all-your-clothes before replying.
Technical Details
Message-ID:
<fpdsv3lrlba85gofhn5no11468lfar8cvm@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!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!demorgan.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!shaftesbury.zen.co.uk.POSTED!not-for-mailReferences:
<qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> <ftjae7$q1d$1@news.trigofacile.com> <indqv3lan958qdct9sbbqhfplt41o80v8m@4ax.com> <ftl2np$82d$1@news.trigofacile.com> <ftl3p8$9l8$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <fpdsv3lrlba85gofhn5no11468lfar8cvm@4ax.com> Subject: Re: INN 2.4.3 Question on Authentication (AUTHINFO) Date: Thu, 10 Apr 2008 17:02:47 +0100 From: Tim Fardell <tim.fardell.all-your-clothes@virgin.net> References: <qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> <ftjae7$q1d$1@news.trigofacile.com> <indqv3lan958qdct9sbbqhfplt41o80v8m@4ax.com> <ftl2np$82d$1@news.trigofacile.com> <ftl3p8$9l8$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!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!demorgan.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!shaftesbury.zen.co.uk.POSTED!not-for-mail Newsgroups: news.software.nntp X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 59 Organization: Zen Internet NNTP-Posting-Host: 3b1216ae.news.zen.co.uk X-Trace: DXC=2H43J<; 8=iAZI?P@L9baFGnok4Z\<mH4IhDU:2=XKPkHJ1GUmcj>4jOGe\aWc^aheF]4SfDD:ig=K@N@ToZ1N8EK X-Complaints-To: abuse@zen.co.uk