🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72143

Re: need some help with INN authenticication and readers.conf...

#72143
From: Christian Hoffmann
Date: Tue, 09 Aug 2005 15:44
101 lines
4081 bytes

Russ Allbery wrote:
> Christian Hoffmann <brcwcs@gmx.net> writes:
> 
> 
>>Maybe it is too obvious for native speakers, but I'm afraid I need it 
>>more verbose. My problem in understanding the manpage is like some folks 
>>write "... use <name>@<domain>.<tld>" and actually mean "... use 
>>helmut@brcwcs.org".
> 
> 
> This is a good point, and I should perhaps change the readers.conf
> examples to use something other than <FAIL>.  In general, in all of the
> INN documentation, anything in angle brackets is a variable that you
> replace with your own value.  <FAIL> in the readers.conf documentation,
> however, is an explicit string, although it's not special in any way other
> than being used in the example.  You can replace it with something else
> and everything will work the same (provided that you replace both
> instances), but the intention is to use a string that will never be used
> as a username.
> 
> 
>>Is e.g. "<FAIL>" reserved somehow or can I also use
>>"<SOMETHING_ELSE>"?
> 
> 
> You can also use <SOMETHING_ELSE>.
>

Thank You for this info!

> 
>>I would not ask this stupid question if my readers.conf (it's indeed the
>>modified example, but I try to force users to authenticicate against a
>>separate password file...) would be working as expected:
> 
> 
>>---------------------------------------------------------------------
>># Default authorization: None
> 
> 
>>auth "default" {
>>     default: "<FAIL>"
>>     default-domain: "brcwcs.org"
>>}
> 
> 
>># if e.g. helmut tries to login from the physical
>># intranet he is assigned the identity "helmut@intranet.brcwcs.org"
> 
> 
>>auth "intranet" {
>>     hosts: "192.168.110.0/24"
>>     auth: "ckpasswd -d /home/news/readers_intranet.auth"
>>     default: "<FAIL>"
>>     default-domain: "intranet.brcwcs.org"
>>}
> 
> 
>># folks from the intranet are allowed everything
>># on all newsgroups
> 
> 
>>access "intranet" {
>>     users: "*@intranet.brcwcs.org"
>>     newsgroups: "*"
>>     access: "RPA"
>>{
> 
> 
>># all others are allowed nothing
> 
> 
>>access "fail" {
>>     users: "<FAIL>@*"
>>     newsgroups: "!*"
>>}
>>---------------------------------------------------------------------
> 
> 
>>Result: Helmut is asked for a password. The password is accepted but
>>helmut is allowed nothing.  I have never been prompted for a password
>>and allowed everything.
> 
> 
> Hm, I don't see anything obviously wrong with the above, although note
> that no one outside of the IP range in intranet will ever be allowed
> access.
>
> In particular, I don't see how you would get access to read groups on that
> server without specifying a password.
> 

... well, now I know what's gone wrong. Finally I changed and changed a 
copy of readers.conf in a wrong directory :-(   Too much coffee...

Thank you very much for your help!

Christian
Technical Details
Message-ID: <3ls1c4F13olfoU1@individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <3lr48bF13hc32U1@individual.net> <dd9r4n$96r$1@puck.litech.org> <3lric7F13u75rU1@individual.net> <87acjr41g2.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3ls1c4F13olfoU1@individual.net>
Subject: Re: need some help with INN authenticication and readers.conf...
Date: Tue, 09 Aug 2005 17:44:59 +0200
From: Christian Hoffmann <brcwcs@gmx.net>
References: <3lr48bF13hc32U1@individual.net> <dd9r4n$96r$1@puck.litech.org> <3lric7F13u75rU1@individual.net> <87acjr41g2.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 101
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net vR6xaDqlqfgSnBOiN4ByPwOERyzf6eCUl+S7MP12wMdEAJ/Zzj
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
X-Accept-Language: en-us, en
In-Reply-To: <87acjr41g2.fsf@windlord.stanford.edu>