🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #45766

Re: nntp.access password confusion

#45766
From: Russ Allbery
Date: Fri, 14 Apr 2000 00:00
41 lines
2155 bytes
Ron Peterson <rpeterson@yellowbank.com> writes:

> I'm having trouble with user authentication.  INN 2.2.1.  When I set up
> nntp.access with usernames and passwords, the list of six newsgroups
> I've created is reduced to one at the client end.

> If I remove the username:password from nnrp.access, everything works
> fine.

> Here's my nnrp.access (one of several dozen attempts, anyway)

> *:: -no- : -no- :!*
> localhost:RP:::*
> *.mydomain.com:RP::*
> *.mydomain.com:RP:user:pass:one.two.abc
> *.mydomain.com:RP:next:passb:one.two.def
> etc.

> All the newsgroups work fine until I try to use usernames and passwords.

Right, that's how you've configured it.

The way that nnrpd works, in the presence of entries requiring passwords,
is that when the user first connects, they get assigned the permissions
granted to the entry with no username and password.  So they get the
permissions specified on the first line, which says they can read and post
to all newsgroups.

When they specify a password, the file is parsed again and again they get
the *last matching* permissions.  So if they enter "user" and "pass", they
get the permissions specified on the second line, which explicitly says
that they're allowed to read and post to one.two.abc and to no other
newsgroup.

How to fix this depends on what you're trying to accomplish.  What access
are you trying to grant?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylwvm0mbn7.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.mbox.zip!not-for-mail
References: <8d82nv$a2j$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylwvm0mbn7.fsf@windlord.stanford.edu>
Subject: Re: nntp.access password confusion
Date: Fri, 14 Apr 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <8d82nv$a2j$1@nnrp1.deja.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.mbox.zip!not-for-mail
X-Deja-AN: 611346542
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: news.software.nntp