Thread View: news.software.nntp
8 messages
8 total messages
Started by Rebecca Ore
Wed, 07 Mar 2001 19:37
Setting up Readers.conf
Author: Rebecca Ore
Date: Wed, 07 Mar 2001 19:37
Date: Wed, 07 Mar 2001 19:37
39 lines
2263 bytes
2263 bytes
I was able to add one outside reader who had no problem posting to a
test group, but on adding additional outside readers using the same
pattern, I found those readers couldn't get the list of groups from
my server.
I added key: <authgroup>. One of the earlier setups still works from
a different domain name, but I haven't tested individual users again.
I'm trying something like this:
auth "username" {
hosts: "*.domain.com, *.domain.net "
default: "<user>"
key: <username>
default-domain: "domain.com, *domain.net"
}
access "username"" {
users: "username*"
newsgroups: "net.*"
key: <username>
access: "Read Post"
}
Is there a more reliable way to do this when one has a number of users
with different sets of privileges coming in from different ISPs?
I'll eventually modify this to include authentication by username and
password, but want to get this particularly part right first as I
understand that adding user name/password authentication will be just
a configuration line pointing to the database, and I'll still need to
have what each user can read and post to configured, too.
--
Rebecca Ore
http://www.ogoense.net/rebecca
Re: Setting up Readers.conf
Author: Rebecca Ore
Date: Wed, 07 Mar 2001 20:23
Date: Wed, 07 Mar 2001 20:23
52 lines
2574 bytes
2574 bytes
Rebecca Ore <rebecca@ogoense.net> writes:
> I was able to add one outside reader who had no problem posting to a
> test group, but on adding additional outside readers using the same
> pattern, I found those readers couldn't get the list of groups from
> my server.
>
> I added key: <authgroup>. One of the earlier setups still works from
> a different domain name, but I haven't tested individual users again.
>
> I'm trying something like this:
>
>
> auth "username" {
> hosts: "*.domain.com, *.domain.net "
> default: "<user>"
> key: <username>
> default-domain: "domain.com, *domain.net"
> }
>
> access "username"" {
> users: "username*"
> newsgroups: "net.*"
> key: <username>
> access: "Read Post"
> }
>
I solved this for one user by putting the key in quotes and by making
his email address the default. If that works for my other people
coming in from different domains, then all I've got to do next is work
on my authentication system.
What it looks like is
key: "foo"
default: "foo@bar.invalid"
in the auth lines
And
key: "foo"
in the access lines. If that works for the other users with their key
set off in quotes, then that is the pattern. I don't know whether
putting the exact user email address is necessary or if I could leave
it as <user>.
--
Rebecca Ore
http://www.ogoense.net/rebecca
Re: Setting up Readers.conf
Author: Russ Allbery
Date: Wed, 07 Mar 2001 23:18
Date: Wed, 07 Mar 2001 23:18
78 lines
3978 bytes
3978 bytes
Rebecca Ore <rebecca@ogoense.net> writes:
> I was able to add one outside reader who had no problem posting to a
> test group, but on adding additional outside readers using the same
> pattern, I found those readers couldn't get the list of groups from my
> server.
> I added key: <authgroup>. One of the earlier setups still works from a
> different domain name, but I haven't tested individual users again.
Normally you don't need to use key. Generally, key is only necessary or
useful when you assign the same user identity to multiple users but still
need to distinguish between them somehow. It's usually easier to just
avoid ever assigning one user identity to more than one person.
> I'm trying something like this:
> auth "username" {
> hosts: "*.domain.com, *.domain.net "
> default: "<user>"
> key: <username>
> default-domain: "domain.com, *domain.net"
> }
That isn't how default-domain works; default-domain is the domain that's
appended to the assigned user identity if that assigned identity doesn't
contain an @ sign. In this case, I think that results in a user identity
of literally "<user>@domain.com, *domain.net", which is a little odd.
I think what you want here is:
auth "username" {
hosts: "*.domain.com, *.domain.net"
default: "username@domain.com"
}
with no default-domain or key, and then, if you don't assign that same
full identity to any other user, an access group like:
access "username" {
users: "username@domain.com"
newsgroups: "net.*"
access: "Read Post"
}
should do what you want. As long as the hosts keys of the auth groups are
non-overlapping and you generate a different user identity string for each
user, you can just keep adding more auth and access groups, one per user,
for each additional user that you're authenticating via incoming address
like this.
> I'll eventually modify this to include authentication by username and
> password, but want to get this particularly part right first as I
> understand that adding user name/password authentication will be just a
> configuration line pointing to the database, and I'll still need to have
> what each user can read and post to configured, too.
When you add password authentication, the difference will be that your
auth stanza will look like:
auth "username" {
hosts: "*.domain.com, *.domain.net"
auth: "ckpasswd -f /path/to/password/file"
default-domain: "domain.com"
}
This is where you want to use default-domain, since ckpasswd just returns
the bare username that they authenticated as and you want to add on the
domain to make sure that that user identity is unique and therefore maps
to one and only one access group (if I understand the intended structure
correctly).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Setting up Readers.conf
Author: Rebecca Ore
Date: Wed, 07 Mar 2001 23:58
Date: Wed, 07 Mar 2001 23:58
64 lines
3301 bytes
3301 bytes
Russ Allbery <rra@stanford.edu> writes:
(snips)
>
> auth "username" {
> hosts: "*.domain.com, *.domain.net"
> default: "username@domain.com"
> }
>
> with no default-domain or key, and then, if you don't assign that same
> full identity to any other user, an access group like:
>
> access "username" {
> users: "username@domain.com"
> newsgroups: "net.*"
> access: "Read Post"
> }
Okay. Now if I can get one of my remote users to test this....
(What made the thing I finally tried work? Putting in the full mailing address
of the user? I did that at the same time as I tried key: "username".
The second thing I posted was working.
>
> When you add password authentication, the difference will be that your
> auth stanza will look like:
>
> auth "username" {
> hosts: "*.domain.com, *.domain.net"
> auth: "ckpasswd -f /path/to/password/file"
> default-domain: "domain.com"
> }
>
> This is where you want to use default-domain, since ckpasswd just returns
> the bare username that they authenticated as and you want to add on the
> domain to make sure that that user identity is unique and therefore maps
> to one and only one access group (if I understand the intended structure
> correctly).
I anticipate having a couple of different classes of users:
1. From one domain reading domain-specific groups and other
hiearachies as chosen, which looks like it will work the way I have
netaxs.com set up for net.* Domains may have sub-sets of users.
2. Individual users from a range of ISPs reading various subsets of
hieararchies and groups, probably using a web-based reader with
authentication. Range of domains, range of groups accessible.
3. Shell users who can read all groups.
4. Shell users who can't read all groups.
The last two categories we got set up the first night I was
operational. I want to make sure that I have ways to do both 1 and 2
before setting up on a second machine and getting a fuller feed.
Thanks again. I've saved your article for future reference.
--
Rebecca Ore
http://www.ogoense.net/rebecca
Re: Setting up Readers.conf
Author: Russ Allbery
Date: Thu, 08 Mar 2001 00:44
Date: Thu, 08 Mar 2001 00:44
37 lines
2527 bytes
2527 bytes
Rebecca Ore <rebecca@ogoense.net> writes:
> (What made the thing I finally tried work? Putting in the full mailing
> address of the user?
Yeah, I think so.
> I anticipate having a couple of different classes of users:
> 1. From one domain reading domain-specific groups and other
> hiearachies as chosen, which looks like it will work the way I have
> netaxs.com set up for net.* Domains may have sub-sets of users.
> 2. Individual users from a range of ISPs reading various subsets of
> hieararchies and groups, probably using a web-based reader with
> authentication. Range of domains, range of groups accessible.
> 3. Shell users who can read all groups.
> 4. Shell users who can't read all groups.
> The last two categories we got set up the first night I was operational.
> I want to make sure that I have ways to do both 1 and 2 before setting
> up on a second machine and getting a fuller feed.
Makes sense. Actually, once you get that done, if you want to sanitize it
somewhat, it would probably make for a fairly interesting example to put
up on the web somewhere. It's a nicely complicated configuration to solve
some practical problems that other people are also likely to encounter,
and the more readers.conf examples we have, the better.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Setting up Readers.conf
Author: Rebecca Ore
Date: Thu, 08 Mar 2001 01:40
Date: Thu, 08 Mar 2001 01:40
53 lines
3359 bytes
3359 bytes
Russ Allbery <rra@stanford.edu> writes: > Rebecca Ore <rebecca@ogoense.net> writes: > > > (What made the thing I finally tried work? Putting in the full mailing > > address of the user? > > Yeah, I think so. I like being in the right general vicinity even if I need help getting all the i's dotted. Another user reported that things were working okay fine now, so that does appear to be it. I also fixed /news/db/newsgroups as some readers don't appear to be happy running from just the active file. Cat something.txt >> newsgroups has become my friend. Kinda cute to see the descriptions in the gnus modeline, too. > > > I anticipate having a couple of different classes of users: > > > 1. From one domain reading domain-specific groups and other > > hiearachies as chosen, which looks like it will work the way I have > > netaxs.com set up for net.* Domains may have sub-sets of users. > > > 2. Individual users from a range of ISPs reading various subsets of > > hieararchies and groups, probably using a web-based reader with > > authentication. Range of domains, range of groups accessible. > > > 3. Shell users who can read all groups. > > > 4. Shell users who can't read all groups. > > > The last two categories we got set up the first night I was operational. > > I want to make sure that I have ways to do both 1 and 2 before setting > > up on a second machine and getting a fuller feed. > > Makes sense. Actually, once you get that done, if you want to sanitize it > somewhat, it would probably make for a fairly interesting example to put > up on the web somewhere. It's a nicely complicated configuration to solve > some practical problems that other people are also likely to encounter, > and the more readers.conf examples we have, the better. I suspect there will have to be a rather large lot of substitutions to protect various people, but sure. If you ever want to test man pages on a fairly new INN runner, I'd be happy to help there, too. Next week's assignment, setting up auth by password. To be continued. -- Rebecca Ore http://www.ogoense.net/rebecca
Re: Setting up Readers.conf
Author: bill davidsen
Date: Wed, 14 Mar 2001 18:50
Date: Wed, 14 Mar 2001 18:50
37 lines
2831 bytes
2831 bytes
In article <yl7l21cgnk.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: | should do what you want. As long as the hosts keys of the auth groups are | non-overlapping and you generate a different user identity string for each | user, you can just keep adding more auth and access groups, one per user, | for each additional user that you're authenticating via incoming address | like this. A few comments: <> res vs. auth The doc says that res programs may return a value with or without domain. It's not clear from the man page how this applies to the auth programs, if the default domain is added to the user name from AUTHINFO, or added if the value returned after authprog. <> last match problems The auth stanzas are executed and do last match. If you have multiple authprog entries in a single stanza, however, not all res or auth progs are tried, checking stops after the first successful match. This behaviour is useful, but *not* really intuitive. <> Group lists There was discussion about modifying the res/auth interface to allow returning a group list from the program, to avoid needing to have a whole bunch of stanzas for every possible combination. What happened to this, if anything? In the case of the original poster, and some things I'm doing, there are a *lot* of possible values, which make for a large readers.conf file (and beg for a little program to generate all this stuff!). -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "I am lost. I am out looking for myself. If I should come back before I return, please ask me to wait." -seen in a doctor's office
Re: Setting up Readers.conf
Author: Russ Allbery
Date: Wed, 14 Mar 2001 23:27
Date: Wed, 14 Mar 2001 23:27
50 lines
3191 bytes
3191 bytes
bill davidsen <davidsen@tmr.com> writes:
> A few comments:
> <> res vs. auth
> The doc says that res programs may return a value with or without
> domain. It's not clear from the man page how this applies to the auth
> programs, if the default domain is added to the user name from AUTHINFO,
> or added if the value returned after authprog.
auth is the same. It may return a value with or without a domain, and if
no domain is provided, default-domain is used. nnrpd treats the user name
from AUTHINFO as a magic cookie and just passes it off to the auth
program, so only the value returned by the auth program is significant to
nnrpd and the rest of readers.conf.
> <> last match problems
> The auth stanzas are executed and do last match. If you have multiple
> authprog entries in a single stanza, however, not all res or auth progs
> are tried, checking stops after the first successful match. This
> behaviour is useful, but *not* really intuitive.
It is documented, though. I agree that it's not intuitive, but I also am
not sure it's worth changing.
> <> Group lists
> There was discussion about modifying the res/auth interface to allow
> returning a group list from the program, to avoid needing to have a
> whole bunch of stanzas for every possible combination. What happened to
> this, if anything?
Everyone agrees that it's a good idea, but the existing readers.conf code
is hard to work with. This probably wouldn't be too bad to implement,
though.
> In the case of the original poster, and some things I'm doing, there are
> a *lot* of possible values, which make for a large readers.conf file
> (and beg for a little program to generate all this stuff!).
If you have enough complexity that you're thinking a little program might
be nice, you may want to look at the Perl authentication hooks. They can
also be faster than forking an external resolver given the current
infrastructure.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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