🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67363

Re: Authentication Question

#67363
From: Steve
Date: Thu, 11 Dec 2003 09:43
50 lines
2882 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:

> Yup.  Common confusion.  (I ought to dig up the most clear
> explanation I've ever written of this and get Russ to put it in
> the FAQ, but oh well.)
> 
> 
>>auth "global" {
>>        default: "<user>@global"
>>}
>>
>>auth "trusted" {
>>        default: "<user-auth>@global"
>>        auth: "ckpasswd -f /usr/local/news/passwd/innpasswd"
>>}
> 
> So here's one problem.  The second auth group is always going to
> match (since there's no hosts: restriction), so an
> unauthenticated connection is going to be assigned identity
> <user-auth>@global.

Thanks Jeffrey, now I'm beginning to see the light a little!  So I could 
in fact remove my "global" section completely and change the default 
under "trusted" to <user>@global.  Unauthenticated users will then be 
recognized as <user>@global whilst authenticated user will be assigned 
their login name.

> 
> 
>>access "trusted" {
>>        users: "<user-auth>@global"
>>        newsgroups: "*,!local,!control*,!junk*"
>>}
> 
> And here's the other.  When a user successfully authenticates
> with a ckpasswd database, the identity assigned is that of the
> username provided during the authentication itself, not the
> default in that auth group.

So to meet my requirement, I really need a not(!) under users: so that 
anything but <user>@global will be assigned rights for an authenticated 
user.

> (A failed authentication attempt,
> like an incorrect password, results in a closed connection with
> no further readers.conf processing.)

Based on this, is there ever a purpose for assigning a default after an 
auth?  If no further processing is performed, the default can never be 
acted upon.
Technical Details
Message-ID: <br9e88$o9b$1@lore.csc.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.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!lore.csc.com!not-for-mail
References: <br27ci$3te$1@bananasplit.info> <br4g34$nsj$3@puck.litech.org> <br4lld$3s9$1@lore.csc.com> <br8vc0$bd$2@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <br9e88$o9b$1@lore.csc.com>
Subject: Re: Authentication Question
Date: Thu, 11 Dec 2003 09:43:36 +0000
From: Steve <steve@nospam-goofer.co.uk>
References: <br27ci$3te$1@bananasplit.info> <br4g34$nsj$3@puck.litech.org> <br4lld$3s9$1@lore.csc.com> <br8vc0$bd$2@puck.litech.org>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!lore.csc.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Computer Sciences Corporation
Lines: 50
NNTP-Posting-Host: 20.45.47.132
X-Trace: lore.csc.com 1071135816 24875 20.45.47.132 (11 Dec 2003 09:43:36 GMT)
X-Complaints-To: abuse@news.csc.com
NNTP-Posting-Date: Thu, 11 Dec 2003 09:43:36 +0000 (UTC)
User-Agent: Xnews/06.08.25