🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Ron Peterson Fri, 14 Apr 2000 00:00
nntp.access password confusion
#45752
Author: Ron Peterson
Date: Fri, 14 Apr 2000 00:00
36 lines
1711 bytes
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.  I'm sure this question has been asked a million times.
Hopefully with a big heart will have the patience to explain this yet
again...

Yes, I've read and reread the /usr/doc/... and man nnrp.access.  I just
haven't been able to assemble my characters in quite the right order
yet...

Many thanks.

Ron Peterson
rpeterson@yellowbank.com


Sent via Deja.com http://www.deja.com/
Before you buy.

Re: nntp.access password confusion
#45766
Author: 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/>

Re: nntp.access password confusion
#45779
Author: Ron Peterson
Date: Sat, 15 Apr 2000 00:00
86 lines
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.

Re: nntp.access password confusion
#45780
Author: Russ Allbery
Date: Sat, 15 Apr 2000 00:00
47 lines
2364 bytes
Ron Peterson <rpeterson@yellowbank.com> writes:

> 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.

*.example.com:RP:::example.*,!example.project.*
*.example.com:RP:usera:passa:example.*

is, I think, as close as you can come with INN 2.2 and earlier, which does
(1) and (3) but not (2).  The old nnrp.access file syntax doesn't allow
giving someone read and post access to some newsgroups and only read
access to others, so far as I know.  You have to use moderated groups
instead.

In INN 2.3, which is *almost* in public beta release (you can download the
release candidates from <ftp://ftp.isc.org/isc/inn/snapshots/> as
inn-BETA-*), there's a different configuration file called readers.conf
that is used instead, and I believe the following would do what you want:

auth all {
    hosts: *.example.com
    auth: "ckpasswd -f /path/to/passwd/file"
    default: <REGULAR>
}

access authorized {
    users: *
    newsgroups: *
}

access regular {
    users: <REGULAR>
    read: *,!example.project.principals
    post: *,!example.project.*
}

Later access groups override earlier ones, so someone with an assigned
identity of <REGULAR> (anyone who hasn't authenticated) will get the
access specified by the final access group.  You'll also need to create a
passwd file for ckpasswd to use, which contains usernames and passwords
encrypted with crypt(2).

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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads