Thread View: news.software.nntp
5 messages
5 total messages
Started by Michael Jenkins
Mon, 18 Aug 2003 11:17
INND Authentication - One Username Multiple Groups Access
Author: Michael Jenkins
Date: Mon, 18 Aug 2003 11:17
Date: Mon, 18 Aug 2003 11:17
33 lines
1719 bytes
1719 bytes
I'd like to use one htpasswd made file to allow certain users access
to certain newsgroups depending on their username. I have this so
far, however it fails to work, I know it only chooses one auth section
once it autheticates there, and then uses that, the only way I can get
this to work is to do default-domain on each auth/access pair and make
a separate username for each user. So one person in real life may
have 20 usernames.
auth test1 {
hosts: *
auth: "ckpasswd -f /etc/news/passwd"
}
access test1 {
users: guest
newsgroups: *EDU*
}
auth test2 {
hosts: *
auth: "ckpasswd -f /etc/news/passwd"
}
access test2 {
users: guest,demo
newsgroups: *EDU56*
}
RH9
inn-2.3.4-2
Linux ## 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686
i386 GNU/Linux
Re: INND Authentication - One Username Multiple Groups Access
Author: Jeffrey M. Vinocur
Date: Mon, 18 Aug 2003 11:22
Date: Mon, 18 Aug 2003 11:22
29 lines
2433 bytes
2433 bytes
In article <8294e830.0308180317.1ea09c43@posting.google.com>, Michael Jenkins <siku2001us@yahoo.com> wrote: >I'd like to use one htpasswd made file to allow certain users access >to certain newsgroups depending on their username. I have this so >far, however it fails to work, I know it only chooses one auth section >once it autheticates there, and then uses that, the only way I can get >this to work is to do default-domain on each auth/access pair and make >a separate username for each user. So one person in real life may >have 20 usernames. The readers.conf you showed contains a lot of stuff that won't have any effect, but I think I know what you want. It sounds like you want to specify, for each *hierarchy*, a list of users that can access it. This is the reverse of the usual INN method, in which you specify for each *user* what groups he can access. However, people want to do this sort of thing fairly often; even though INN does not support it directly. So if it's difficult to reorganize your access control into a user-based system, you may want to look into using the Perl authentication hooks, which allow you to check permissions every time a user tries to read a newsgroup (and thus you can do group-based access). -- Jeffrey M. Vinocur jeff@litech.org
Re: INND Authentication - One Username Multiple Groups Access
Author: Erik Klavon
Date: Mon, 18 Aug 2003 15:39
Date: Mon, 18 Aug 2003 15:39
15 lines
1910 bytes
1910 bytes
Jeffrey M. Vinocur wrote: > However, people want to do this sort of thing fairly often; even > though INN does not support it directly. So if it's difficult to > reorganize your access control into a user-based system, you may > want to look into using the Perl authentication hooks, which > allow you to check permissions every time a user tries to read a > newsgroup (and thus you can do group-based access). The python hooks currently have this feature (access control on a per-group basis), the perl hooks do not. There is a plan to add this functionality to the perl hooks, but it has not yet been implemented. Erik
Re: INND Authentication - One Username Multiple Groups Access
Author: Michael Jenkins
Date: Tue, 19 Aug 2003 09:23
Date: Tue, 19 Aug 2003 09:23
15 lines
2159 bytes
2159 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message news:<bhqcuh$gte$2@puck.litech.org>... > It sounds like you want to specify, for each *hierarchy*, a list > of users that can access it. This is the reverse of the usual > INN method, in which you specify for each *user* what groups he > can access. I interpreted the man page as saying once an auth section was reached, it was the only one used for the user, therefore the user has a unique identity, this would be fine, if I could setup one *auth* section and unlimited *access* sections with users specified, however they have to be paired, so this approach doesn't work. Per user access is really what I am looking for, but I am unsure how to approach this. The reason I choose a hierachial access was I thought this was the only method to choose how separate users access groups. Can you please provide some details on a user access approach? Thanks in advance.
Re: INND Authentication - One Username Multiple Groups Access
Author: Jeffrey M. Vinocur
Date: Tue, 19 Aug 2003 11:30
Date: Tue, 19 Aug 2003 11:30
44 lines
2607 bytes
2607 bytes
In article <8294e830.0308190123.1fa49cc4@posting.google.com>,
Michael Jenkins <siku2001us@yahoo.com> wrote:
>
>I interpreted the man page as saying once an auth section was reached,
>it was the only one used for the user, therefore the user has a unique
>identity, this would be fine, if I could setup one *auth* section and
>unlimited *access* sections with users specified, however they have to
>be paired, so this approach doesn't work. Per user access is really
>what I am looking for, but I am unsure how to approach this. The
>reason I choose a hierachial access was I thought this was the only
>method to choose how separate users access groups. Can you please
>provide some details on a user access approach? Thanks in advance.
readers.conf describes a two-stage process. First, exactly one
auth group is selected (based primarily on hosts:, and presence
of the appropriate one of auth:/res:). That auth group is used
to determine an identity. Then exactly one access group is
selected (based on primarily on users:). That access group is
used to determine what groups can be read/posted/etc.
So maybe you just need something like this:
auth password {
hosts: *
auth: ...
}
access general {
users: "*"
newsgroups: "public.*"
}
access restricted {
users: "bob, sue, jane, *@admin.example.com"
newsgroups: "*"
}
With however many access groups you require.
--
Jeffrey M. Vinocur
jeff@litech.org
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