Thread View: news.software.nntp
5 messages
5 total messages
Started by Andrew Ruthven
Mon, 18 Mar 1996 00:00
User authentication with a twist...
Author: Andrew Ruthven
Date: Mon, 18 Mar 1996 00:00
Date: Mon, 18 Mar 1996 00:00
27 lines
1590 bytes
1590 bytes
Hi, I've done a little snuffling round various FTP and Web sites today and couldn't find what I was looking for so I'll try here... I have two groups of people, group A would like read and post access to all newsgroups. Group B will have read only for all newsgroups except for foo.* which they'll have post access as well. Is this possible? I'm currently runinng INN1.4 (I'm not sure if it's sec though...) on a Linux 1.2.9 box. I can change software if required and will happily upgrade the box to a newer release of the kernel. (I've been meaning too but haven't had a chance and it had been up for about 200 days until a power cut two weeks ago.) I glanced at "group" which is close but appears to work in the similar way as INN does by default with not being able to specify R and RP for different groups. Thanks in advance! -- Andrew Ruthven, Wellington, New Zealand At home : andrew@cerberus.nui-wgtn.gen.nz | This space intentionally On Fido : Andrew Ruthven @ 3:771/1610 | left blank.
Re: User authentication with a twist...
Author: Andrew Ruthven
Date: Sun, 24 Mar 1996 00:00
Date: Sun, 24 Mar 1996 00:00
24 lines
1476 bytes
1476 bytes
According to Andrew Ruthven <andrew@cerberus.nui-wgtn.gen.nz>: >Hi, I've done a little snuffling round various FTP and Web sites today >and couldn't find what I was looking for so I'll try here... > >I have two groups of people, group A would like read and post access >to all newsgroups. Group B will have read only for all newsgroups >except for foo.* which they'll have post access as well. > >Is this possible? Well, after almost a week and no responses, I find it hard to believe that nobody was needed to do this before! Even if somebody can point in the general direction of something which will accomplish this I would very much appreciate it. Thanks in advance! -- Andrew Ruthven, Wellington, New Zealand At home : andrew@cerberus.nui-wgtn.gen.nz | This space intentionally On Fido : Andrew Ruthven @ 3:771/1610 | left blank.
Re: User authentication with a twist...
Author: Andrew Foster
Date: Sun, 24 Mar 1996 00:00
Date: Sun, 24 Mar 1996 00:00
27 lines
1450 bytes
1450 bytes
Hi, : >I have two groups of people, group A would like read and post access : >to all newsgroups. Group B will have read only for all newsgroups : >except for foo.* which they'll have post access as well. : > : >Is this possible? : Well, after almost a week and no responses, I find it hard to believe : that nobody was needed to do this before! : Even if somebody can point in the general direction of something which : will accomplish this I would very much appreciate it. If you use different IPs for those groups then you can do it. So either put them in different classes, or use xx.xx.xx.mxx and ....xx.zxx and use a pattern for m* and x* for those groups .. The only way to do it is to use permanent IPs and nntp.access (that I know of ..) Thanks, Andrew -- Andrew Foster adf@fl.net.au
Re: User authentication with a twist...
Author: Andrew Ruthven
Date: Mon, 25 Mar 1996 00:00
Date: Mon, 25 Mar 1996 00:00
40 lines
2215 bytes
2215 bytes
According to Andrew Foster <adf@cafu.fl.net.au>: >Hi, > >: >I have two groups of people, group A would like read and post access >: >to all newsgroups. Group B will have read only for all newsgroups >: >except for foo.* which they'll have post access as well. >: > >: >Is this possible? > >: Well, after almost a week and no responses, I find it hard to believe >: that nobody was needed to do this before! > >: Even if somebody can point in the general direction of something which >: will accomplish this I would very much appreciate it. > >If you use different IPs for those groups then you can do it. So either put >them in different classes, or use xx.xx.xx.mxx and ....xx.zxx and use a >pattern for m* and x* for those groups .. The only way to do it is to use >permanent IPs and nntp.access (that I know of ..) Well, that's kind of what I'm doing now, but it isn't exactly what I want. Here's an example from nnrp.access (much simplified) Group A IP's:RP:::* Group B IP's:R:::* Group B IP's:RP:::foo.* Does that perhaps make it a bit clearer? Now the problem happens where since it only uses the last line matched Group B would only have RP to foo.* . Not quite the desired aim. :) Thanks in any case! If you have a solution which covers this extended problem I'll even more grateful! -- Andrew Ruthven, Wellington, New Zealand At home : andrew@cerberus.nui-wgtn.gen.nz | This space intentionally On Fido : Andrew Ruthven @ 3:771/1610 | left blank.
Re: User authentication with a twist...
Author: Mike Marler
Date: Thu, 28 Mar 1996 00:00
Date: Thu, 28 Mar 1996 00:00
88 lines
4454 bytes
4454 bytes
andrew@cerberus.nui-wgtn.gen.nz (Andrew Ruthven) writes:
>Well, after almost a week and no responses, I find it hard to believe
>that nobody was needed to do this before!
>Even if somebody can point in the general direction of something which
>will accomplish this I would very much appreciate it.
>Thanks in advance!
How about I was on vacation for an excuse? :-) We did basically the same
thing you are talking about for a few years with the assumption of
all users could read all groups, and only approved users could post
to all groups. Steps involved:
1) pick a db package (we used dbm)
2) pick a hashing/encryption method to "use upon" a user name to
create a key (ticket, token, whatever name you wish)
3) hack together some the code to maintain the above database
4) hack code into INN to determine if user is in db
To be approved, a user would sign a CYA wavier form and be added to the
"approved users db" by one of the people at the "Customer Support Center".
(Revoking of "posting privledges" was done as well.)
Here is a skelton of what we did to the inn code to which you might be
able to find a better solution:
1) changing inews will cover the users using things like Pnews, postnews,
or their own hand rolled scripts that submit via "inews -h"
inews uses the user name (ie minnie, fred, sue, rr34ty, whoever) to
generate a key, determine if the user has posting privledges and set
a flag (we had this code right after an attempt was made to connect
to the server), then after the call to OfferArticle is an if block
testing for NNTP_AUTH_NEEDED_VAL after that we tested the before
mentioned flag and if posting was allowed then fprintf was used
to ToServer with "authinfo user" with flushing/error-checking
followed by fprintf used to ToServer with "authinfo pass" with
flushing/error-checking
2) changing nnrpd to handle news readers
a) commands.c has "#if statement" used to add this to the function
CMDauthinfo():
if (gtval_validate (User, Password)) {
(void) strcpy (PERMuser, User);
syslog(L_NOTICE, "%s user %s", ClientHost, User);
Reply("%d Ok\r\n", NNTP_AUTH_OK_VAL);
PERMneedauth = FALSE;
PERMauthorized = TRUE;
PERMcanread = TRUE;
PERMcanpost = TRUE;
return;
}
[as you might guess, gtval_validates the user]
with the matching "#else" containing the two if blocks starting with
if (EQ(User, PERMuser) && EQ(Password, PERMpass)) {
and if (PERMinfile((char *)NULL, (char *)NULL, User, Password,
accesslist)) {
b) commands.c has "#if statement" used to add this to function CMDmode
Reply("%d %s InterNetNews NNRP server %s ready @ %s (%s).\r\n",
PERMcanpost ? NNTP_POSTOK_VAL : NNTP_NOPOSTOK_VAL,
MyHostName, INNVersion(), gtval_init (),
PERMcanpost ? "posting ok" : "no posting");
[gtval_init does some intialization junk due to the way that the
key is generated (hashed)]
with the matching "#else" being the replaced call to Reply
c) post.c has the following "#if statement" just after the
if statement following the /* Zap the Sender? */ comment
int fascist (char *, char *);
if (fascist (PERMuser, HDR (_newsgroups))) {
(void) sprintf (Error, "You do not have permission to post
articles.\n");
return Error;
}
[I am having brain fade on why...]
Hope that gives you some ideas...
Cheers, Mike
--
Mike Marler Information Technology, Georgia Tech
mike.marler@oit.gatech.edu Atlanta, Georgia 30332-0715
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