🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72426

Re: Authentication advice

#72426
From: John F. Morse
Date: Sat, 08 Oct 2005 05:28
222 lines
9072 bytes
Jeffrey M. Vinocur wrote:

>In article <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Once we get this working, maybe I should take the time to gather up all 
>>of my notes on dual-access privileges, and submit it for the FAQ or manual?
>>    
>>
>
>*shrug*  It's actually not a very complex configuration -- it's
>just that doing anything with readers.conf is confusing when
>you're new to it.
>  
>

Hi, Jeff.

It's not complex and not necessarily confusing. It's just there is not 
quite enough information available to easily find what is needed. Once 
it is found, then it is easier to find it again later -- usually. ;-)

Maybe there are too many "placeholders" for something a user must 
provide, with no examples for a real-world configuration. I'd love to 
see more #examples/explanations and #lines if necessary.

For example:

auth "localhost" {
     hosts: "localhost, 127.0.0.1, stin"
     default: "<localhost>"

On the last line, just what does "<localhost>" mean? Is it the literal 
word "localhost" or something else (regarding the L.T. and G.T. marks)?

In the auth, is the word "localhost" just a name or label for the 
programmer's ease of remembering, and nothing real, or is it a label 
that the "<localhost>" refers to?

 From readers.conf(8):

------------------------------------------------------------------------

A user identity, as established by an auth group, looks like an e-mail 
address; in other words, it's in the form
       "<username>@<domain>" (or sometimes just "<username>" if no 
domain is specified.

       An auth group definition looks like:

           auth <name> {
               hosts: <host-wildmat>
               auth: <auth-program>
               res: <res-program>
               default: <defuser>
               default-domain: <defdomain>
               # ...possibly other settings
           }


       The <name> is used as a label for the group and is only for 
documentation purposes.  (If your syslog configuration records the 
"news.debug" facility, the <name> will appear in the debugging output of 
nnrpd.  Examining that output can be very helpful in understanding why 
your configuration doesn't do what you expect it to.)

------------------------------------------------------------------------

So, this tells me I could use any identifying word? They show the "<" 
and ">" around the ID, and Russ' "INN 2.4 Documentation" doesn't. 
Possibly this is confusion. ;-)

Just what does INN define the characters "<" and ">" as? Are they the 
values I should provide, like "brisbee"? Do they need to match anywhere, 
like a label and a target?

Another thing that confuses me is readers.conf scanning downward through 
the file, then back upward until it finds a match.

It seems odd why it doesn't just use the first match it finds? Or why 
doesn't it just start at the bottom, if the downward scan is apparently 
not used? (Notice my use of the word "apparently" here.) ;-)

I cannot remember reading anything about the order in a horizontal line. 
I "presume" left to right. (More below.)


>Maybe we should start a repository of working readers.conf
>examples, though.
>  
>


That would be a good idea. Probably with a few real-world examples (even 
using foo.net). I probably will have most of it figures out by trail and 
many errors first, but the aid would help those following (stumbling?) 
behind me. I'm leaving a deep rut.


>>   read: "brisbee,computers,petchat,raucouscaucus,soapbox"
>>   post: "brisbee,computers,petchat,raucouscaucus,soapbox"
>>    
>>
>
>FYI, when read: and post: are the same, you might a well just use
>a newsgroups: line instead.
>  
>


Great tip. Thanks. I used an example, but now I see these lines were NOT 
the same (or not meant to be the same):

------------------------------------------------------------------------

access <name> {
               users: <identity-wildmat>
               read: <read-wildmat>
               post: <post-wildmat>
           }

------------------------------------------------------------------------

>Well, there were three things going on there.  One is that it's
>nice to have full access from localhost for debugging purposes,
>so that when you telnet in for manual testing, you don't have to
>issue AUTHINFO commands every time.  The second is that you may
>one day run some utility on your server that should have reading
>or posting access (like say, a monthly FAQ autoposter).  And the
>third was that, even if you decide to hide control.* from your
>users, you as the admin probably want to be able to see it
>yourself -- I was guessing from your From line that "xanadu" was
>your personal username, but I guess perhaps it's not.
>  
>


My error understanding "localhost" here, Jeff. I took it to mean at the 
server's console (stdin), not via telnet or SSH. I see your point now, 
and your explained uses are good to know.

Xanadu is part of an e-mail address on several mail servers, but I don't 
use it as a Linux or INN user name. I will plug in my real username, if 
it is secure from outsiders (i.e. access from the LAN only, or 
authenticated by a password)?


>>The following readers.conf seems to test out perfectly from an 
>>authorized account, and from any annonymouse, and does correctly ask for 
>>authentication:
>>    
>>
>
>That one looked good for me.  The suggestion above about avoiding
>duplicate read:/post: lines still applies.  And one more
>suggestion below.
>
>>I believe this would be easier if I would choose to use hierarchies. But 
>>then the longer group names would show in any news client (or be 
>>abbreviated in some). 
>>    
>>
>
>That's true.  But the organization might be really nice for your
>users, honestly -- somebody who's got an authenticated account is
>apt to be confused by these two conceptually unrelated groups
>being all jumbled together in alphabetical order.
>
>And besides, it's not like people have to type these group names
>by hand anymore.  What actual problem would the longer names
>cause?
>  
>


Can you count the different ways a user can be confused?

Or even a budding INN newsmaster?  ;-)

Let's just say they wouldn't approve of me changing the names on their 
town after eight years or so.

I can hear, "You did it that way before, why can't you do it now? Didn't 
you tell us INN was a better application?" ...


>You could still put the new groups in some sort of hierarchy to
>keep the separate from the Brisbee ones.
>  
>


That is my plan, as well as the test group which was removed leaving 
local.test.


>
>Yeah, you should be able to do
>
>    newsgroups: "*,!junk,!control,!control.*,control.cancel"
>
>to allow access to just control.cancel.
>

I new there was a better way than my crowbar method. Thanks.

Theory question: So readers.conf reads the "!control.*" but does not act 
on it before finishing the line, and taking the last command (i.e. it 
reads left to right)? I changed both appearances, and it and it seems to 
work this way.

Speaking of control.cancel, can this operation be shut off or ignored on 
a server, so messages are not able to be canceled, say for archival or 
historical purposes?

This archiving server would be accessible by me only, and not the users. 
It also wouldn't need to stream out, but would accept all articles, 
either rejecting c.cancel, or better, just ignoring their request.

-- 
John
Technical Details
Message-ID: <hOI1f.391338$5N3.11756@bgtnsc05-news.ops.worldnet.att.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!border2.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <yFV0f.376066$5N3.345571@bgtnsc05-news.ops.worldnet.att.net> <di1htq$2iq$2@puck.litech.org> <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net> <di692n$4th$2@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <hOI1f.391338$5N3.11756@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Authentication advice
Date: Sat, 08 Oct 2005 05:28:45 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <yFV0f.376066$5N3.345571@bgtnsc05-news.ops.worldnet.att.net> <di1htq$2iq$2@puck.litech.org> <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net> <di692n$4th$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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <di692n$4th$2@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 222
NNTP-Posting-Host: 38cc06a9717ddeb19e87599b182023a5
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1128749325
NNTP-Posting-Date: Sat, 08 Oct 2005 05:28:45 GMT