πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78881

Re: INN 2.4.3 Question on Authentication (AUTHINFO)

#78881
From: Tim Fardell
Date: Wed, 09 Apr 2008 21:50
77 lines
3241 bytes
Thanks Julien! 

On Wed, 9 Apr 2008 22:54:15 +0200, Julien Γ‰LIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>With only your:
>
>auth everyone {
>
>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>
>}

Yes, I thought this was probably the case, but the man page wasn't all
that clear as to exactly how the scanning of readers.conf was handled.
It sort of implied that if the auth failed, it would still match on
the block but set the user to default:, in my case <LOCAL>. 

>> access authenticated {
>>  users "*, !<LOCAL>*"
>>  newsgroups: "*"
>> }
>
>Do not forget the colon after "users".
>Why do you remove <LOCAL> here?

Thinking that if no authentication is carried out, the user will be
set to <LOCAL>, so would match on this block and allow everyone to
post. ???

>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
>}

Thanks! I think I understand what you're doing here - but why doesn't
your access "users-ssl" block match all users and thus allow all users
to read and post? 
So, unauthenticated user comes in, and matches on auth "users" and
gets username "<all>". Access "users-ssl" has no users: line, so
matches all users, including "<all>" so will allow unauthenticated
users to post, as it is the last matching access block in
readers.conf??? 

I guess my question is: why don't you need: 

access "users-ssl" {
    users: "*, !<all>"
    ...
}
-- 
Please remove all-your-clothes before replying. 
Technical Details
Message-ID: <indqv3lan958qdct9sbbqhfplt41o80v8m@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!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!feed.xsnews.nl!border-2.ams.xsnews.nl!212.23.6.69.MISMATCH!zen.net.uk!demorgan.zen.co.uk!reader02.news.zen.co.uk.POSTED!not-for-mail
References: <qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> <ftjae7$q1d$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <indqv3lan958qdct9sbbqhfplt41o80v8m@4ax.com>
Subject: Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Date: Wed, 09 Apr 2008 22:50:32 +0100
From: Tim Fardell <tim.fardell.all-your-clothes@virgin.net>
References: <qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com> <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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!feed.xsnews.nl!border-2.ams.xsnews.nl!212.23.6.69.MISMATCH!zen.net.uk!demorgan.zen.co.uk!reader02.news.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: 77
Organization: Zen Internet
NNTP-Posting-Host: e6ffcf06.news.zen.co.uk
X-Trace: DXC=FQ9<SENRHl7\hVj?cPX@P; YjZGX^207P; `<MJMoM3PF=l;
 U[NjiWM80U]U^0dkcTj>2h4_\n4EaK:joRBk>C97m:
X-Complaints-To: abuse@zen.co.uk