Thread View: news.software.nntp
8 messages
8 total messages
Started by Brian Kantor
Thu, 02 Nov 1989 17:48
Suggested NNTP enhancements for user access control
Author: Brian Kantor
Date: Thu, 02 Nov 1989 17:48
Date: Thu, 02 Nov 1989 17:48
96 lines
4896 bytes
4896 bytes
Several people have sent me suggestions for enhancements to the NNTP specification. The NNTP BOF at InterOp didn't really happen, but I did speak to a few people there about some of these ideas. Some of the suggestions were for new features for retrieval (by keywords, author, etc.). I'd like to write about that some other time. This note is about access control, primarily on user identification and authentication. My concept is to allow each site to implement the user news access security that it wants. In order to do that, what I've been trying to dream up is a few simple non-restrictive additions to the NNTP specification that would be flexible enough to accomodate a wide range of security and identification schemes. So what I propose as the distillation of the suggestions I've received is: We add a USER and PASS commands to the server's command list, each of which has an unspecified parameter(s) field. We add new response codes (with optional parameters) 4xx Insufficient user privilege 3xx [<keyfield>] send password 3yy [<keyfield>] do further authorization stuff 2xx [<keyfield>] user authorized For example: (> is from client, < is from server; don't believe the numbers) <200 ucsd.edu NNTP service ready >GROUP ucsd.secretstuff <488 insufficient user authorization >USER <wombat,mohawk> <380 <l!1k3,2jh45> are your encryption keys >PASS <OIhKJkhu898BY> <250 authorization accepted >GROUP ucsd.secretstuff etc The idea is that the USER command can be required/supplied at any time, and will return to the client a) a 2xx if you just believe it (e.g., for statistics gathering) b) a 3xx if a password is required for authentication c) a 3xx with encryption parameters if using crypto passwords and of course any of the parameter fields can contain multiple parameters (typically separated by commas). In this way a site can demand user authentication as it may require; the 'do further' response can even be used to tell a client to go consult a Kerberos server for tickets, or some crypto server if you want to have news transferred in encrypted form. Additionally, there'd be a NEWUSER command which would just return a unique string (or an error code if not allowed). It would be used by news servers when there is no user-level access restriction but it is desired to maintain user-specific data, such as readership measurement and/or subscription information (as is kept in the current .newsrc). This could be valuable when you have a bunch of Macs and PC reading news, since those kinds of machines usually don't have any concept of logins, but could maintain the userid string supplied at first connection. In a vanilla Unix environment, the USER and PASS commands would probably work just as those in the FTP do. More or less security is a site-specific implementation issue; I'm only trying to add enough to the NNTP to allow people to do the things they want to do. Another new command that has been suggested was CRYPTO [<parameters>] which would instruct the news server that the client was expecting all further transactions to be conducted in some encrypted way as specified by the [optional] parameters. Finally, I see adding two new values to the herald; right now there are 200 sitename, posting ok 201 sitename, no posting and I would add 20x sitename, user authorization required for commands 20y sitename, newsfeed access only for you or perhaps the right thing to do is to flush the '201' and replace it with 200 sitename <access keywords> where <access keywords> are POST, XFER, USER, READ, PASS, etc that would form a list of what access privileges this connection will be allowed or demand. It might be smart to keep these keywords unique in their first letters to simplify parsing. I suppose some really nifty scheme of couples could be made: <:XFER;USER:XFER,READ;PASS:XFER,READ,POST> (in this scenario, anyone can XFER, you have to specify a USER to read articles, and you'd have to verify the USER with a PASSword in order to post articles). Probably this is too elaborate. Comments on any of this stuff? - Brian
Re: Suggested NNTP enhancements for user access control
Author: Amanda Walker
Date: Fri, 10 Nov 1989 17:09
Date: Fri, 10 Nov 1989 17:09
13 lines
1086 bytes
1086 bytes
In article <1802@gazette.bcm.tmc.edu>, sob@watson.bcm.tmc.edu (Stan Barber) writes: > One other thing that has been suggested are a TIME command to get the > server's current view of time. This would be a good thing, since the NEWGROUPS and NEWNEWS commands take their arguments in server-based time. Some of us (who, me?) try to deduce what time the server thinks it is by attempting to parse the initial banner line, but this is definitely a hack... -- Amanda Walker <amanda@intercon.com>
Re: Suggested NNTP enhancements for user access control
Author: Amanda Walker
Date: Sat, 11 Nov 1989 20:12
Date: Sat, 11 Nov 1989 20:12
33 lines
2486 bytes
2486 bytes
In article <BOB.89Nov10164646@archer.MorningStar.Com>, bob@MorningStar.Com (Bob Sutterfield) writes: > In article <1802@gazette.bcm.tmc.edu>, sob@watson.bcm.tmc.edu (Stan Barber) writes: > One other thing that has been suggested are a TIME command to get > the server's current view of time. > > What about transmission delay, and all the other things that you have > to worry about if you're even going to bother starting to think about > time synchronization? You might as well invent a time protocol... > [ lots of good stuff about NTP ] This, of course, does address the problem quite handily. One of the reasons I used the approach I did in some prototype software (which turned out to be unnecessary for completely unrelated reasons) is that the NEWNEWS and NEWGROUPS commands take magic cookies (times) as arguments but give you no way to obtain them except by hoping your clocks are in sync. The only reason that figuring out the server's idea of the time works at all is that NNTP currently gives you a static view of the news base (i.e. what's there when a session starts up). My eventual approach was to ignore NEWNEWS and NEWGROUPS. It was faster to just parse the active file, which gave me the information I needed without having to do anything funky. However, passive NNTP feeds use NEWNEWS and NEWGROUPS, so the problem isn't completely amenable to workarounds within the NNTP protocol itself. NTP is probably the way to go. I wonder if a lonely standalone network (like ours :-)) could run NTP and sync up by modem with an NBS (or is it NIST these days?) modem-equipped cesium clock every so often? That could be nifty... (especially when said clock is only a local call :-)). -- Amanda Walker <amanda@intercon.com>
Re: Suggested NNTP enhancements for user access control
Author: Brian Kantor
Date: Sun, 12 Nov 1989 18:29
Date: Sun, 12 Nov 1989 18:29
22 lines
1685 bytes
1685 bytes
I think the proposed DATE command (which would return the NNTP server's idea of date and time as MMDDYY HHMMSS or something) is probably a good enough idea that it's worth adding as an optional command. Why? Well, it handles the timezone problem, which isn't solvable any other easy way (I mean really, there are adjoining towns which either do or don't observe summer time), and it's a cheap and easy hack. People who want to use it and don't want to go to the trouble of using NTP to get a precise time may do so. And there are commands in NNTP that require MMDDYY HHMMSS arguments. It suits my sense of symmetry and completeness that we should be able to provide some sort of reference point without having to go outside the protocol. But the winning argument came from some people who are using NNTP over non-TCP (in fact, non-internet-protocol) links. There is no time protocol that they can use. So I think I'll add it to the spec as an optional thing. - Brian
Re: Suggested NNTP enhancements for user access control
Author: Brian Kantor
Date: Sun, 12 Nov 1989 18:40
Date: Sun, 12 Nov 1989 18:40
27 lines
1854 bytes
1854 bytes
Mark, you are reading too much into the spec. A more precise statement of the semantics of the USER command is USER <site-dependent-string> i.e., the spec doesn't call for ANY specific syntax or content of the string following the USER command. That means that login procedures for the NNTP server at any particular host are as configurable as is the interactive (user terminal) login itself. If that requires a specific n-tuple of parameters, so be it. N can always be 1 if that's the way your host wants to do it. Specification or requirement of encryption and of user identification and/or verification does not belong in the NNTP spec. All we have to do is provide a facility for in-band exchange of tokens for the people who want to do that. If it is desired to have a specification of the methods of user verification used over the internet, that should be the subject of a separate RFC. As it would undoubtedly apply to telnet, rlogin, ftp, smtp, and nntp, it is a matter which needs careful consideration and shouldn't be hacked into one particular transport protocol specification. I hope you can see why I'm trying so hard to keep these separate! - Brian
Re: Suggested NNTP enhancements for user access control
Author: Eliot Lear
Date: Mon, 13 Nov 1989 01:28
Date: Mon, 13 Nov 1989 01:28
35 lines
2202 bytes
2202 bytes
I've got several comments on the proposed extensions. First, there exists an authentication group within the IETF which deals with authentication issues, headed up by Jeff Schiller, I believe. We should probably be talking to him as to what type of hooks should be left in. Also, my understanding is that there either has been or will be shortly a decree that says that no protocol may move beyond ``proposed standard'' unless the security issues have been addressed. So the hooks should be there. It would also be nice if a simple demonstration of those hooks were included in an implementation, but that brings up oodles of arguments about expectations, etc... When you write the spec, it should be OK (and possibly recommended) for a server to always return a 200 level code, regardless of whether the user passed the challenge. That way, you don't have someone hacking passwords, or other fun stuff. This would probably also have at least the feel of the KISS (keep it simple, stupid). Also, there should be no reason why HOSTS couldn't authenticate themselves in this system. Speaking of response codes, as long as you're doing a new version, care to bring the response codes in line with SMTP, FTP, etc? I realize this could be messy for code trying to deal with both implementations, but if you were to fix this stuff, you'd probably want to run on another port. For example, how about 5xx you blew it, as opposed to a temporary error (if you should even want to do such a thing). 'best, -- Eliot Lear [lear@net.bio.net]
Re: Suggested NNTP enhancements for user access control
Author: Gregory N. Bond
Date: Mon, 13 Nov 1989 02:20
Date: Mon, 13 Nov 1989 02:20
28 lines
2182 bytes
2182 bytes
In article <1546@intercon.com> amanda@intercon.com (Amanda Walker) writes:
NTP is probably the way to go. I wonder if a lonely standalone network
(like ours :-)) could run NTP and sync up by modem with an NBS (or is it
NIST these days?) modem-equipped cesium clock every so often? That could
be nifty... (especially when said clock is only a local call :-)).
(This is off the topic of nntp, but...)
We run ntp here on an isolated network. It runs quite happily. I did
some tests to find the machine with the most stable clock. (By sheer
chance it was the workstation on my desk). This is set up to use the
local clock as a stratum-3 server. All the file severs peer with my
workstation and one other server. One server with an almost-as-stable
clock has a stratum-4 local clock server. All workstations are peered
to their server.
Thus all machines are synced to my workstation, and if that's down
they resync to the other server, otherwise they run free. Works like
a charm. I'd be happy to share experiences and ntp.conf files if
anyone is interested.
Greg.
--
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb
Re: Suggested NNTP enhancements for user access control
Author: Mark Horton
Date: Mon, 13 Nov 1989 16:09
Date: Mon, 13 Nov 1989 16:09
41 lines
2736 bytes
2736 bytes
In article <10125@ucsd.Edu> brian@ucsd.edu (Brian Kantor) writes: >Mark, you are reading too much into the spec. A more precise statement >of the semantics of the USER command is > > USER <site-dependent-string> > >i.e., the spec doesn't call for ANY specific syntax or content of the >string following the USER command. That means that login procedures >for the NNTP server at any particular host are as configurable as is the >interactive (user terminal) login itself. If that requires a specific >n-tuple of parameters, so be it. N can always be 1 if that's the way >your host wants to do it. The whole point of a standard is to standardize things. If the standard says "do whatever you want" you haven't accomplished anything. I should be able to take two implementations of NNTP (say mine and the one my feed is running) and expect them to talk to each other, possibly with some configuration that doesn't require me to have source. I should also be able to implement my local user policy without breaking interoperability with my neighbor. If we restrict the USER line to only apply to END-USER-to-SERVER authentication, then we're OK. But your examples seem to imply using this for PEER-SERVER-to-PEER-SERVER login, and I think that should be kept separate, and if it happens, it's critical that this one be standardized (and, of course, configurable so it can be turned off.) >Specification or requirement of encryption and of user identification >and/or verification does not belong in the NNTP spec. All we have to >do is provide a facility for in-band exchange of tokens for the people >who want to do that. This sounds reasonable, with one caveat. There should be a requirement that any text in the "Please send a password" response be displayed to the user. There will be some implementations where the password depends on the string sent, especially when hand-held authenticators are used. There might be a different code for this case if you like. Mark
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