Article View: news.software.nntp
Article #45779Re: nntp.access password confusion
From: Ron Peterson
Date: Sat, 15 Apr 2000 00:00
Date: Sat, 15 Apr 2000 00:00
86 lines
3669 bytes
3669 bytes
In article <ylwvm0mbn7.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > 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? Thanks for your reply. Well, I would like to create three types of newsgroups. (1) Everyone can read/post - no username/password, (2) Authorized users can post, everyone can read, (3) Only authorized users can read/post. Not that it's directly relevant, but this is for an architectural firm. So to make my situation more concrete, here are some of the newsgroups I would like to make. my.office.general - anyone can post/read my.project.projecta - only people who know username/password for projecta can post. anyone can read. my.project.projectb - etc. my.office.principals - only principals can post or read. So basically, a little bit of everything. Except I guess user authentication via shadow (i.e. - 'x') doesn't really pertain. My usernames/passwords really pertain to groups, not individuals. It would be nice if there were a way to define authentication groups, but as far as I know INN doesn't allow for such a thing. I'm sure my objectives are hardly unique. But I'm really getting hung up on nnrp.access. I've been scouring the net, but just can't seem to find the right recipe. You help is much appreciated. Ron Peterson rpeterson@yellowbank.com Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8dap2i$3gl$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-mailReferences:
<8d82nv$a2j$1@nnrp1.deja.com> <ylwvm0mbn7.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <8dap2i$3gl$1@nnrp1.deja.com> Subject: Re: nntp.access password confusion Date: Sat, 15 Apr 2000 00:00:00 +0000 From: Ron Peterson <rpeterson@yellowbank.com> References: <8d82nv$a2j$1@nnrp1.deja.com> <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 X-Deja-AN: 611643448 X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 165.247.2.143 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Apr 15 22:05:13 2000 GMT X-MyDeja-Info: XMYDJUIDybrp01 Newsgroups: news.software.nntp X-Http-User-Agent: Mozilla/4.7 [en] (X11; I; Linux 2.2.14aa1 i686)