🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #347

Suggested NNTP enhancements for user access control

#347
From: Brian Kantor
Date: Thu, 02 Nov 1989 17:48
96 lines
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
Technical Details
Message-ID: <10095@ucsd.Edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.tcp-ip.mbox.zip!gmdzi!unido!mcsun!uunet!convex!texsun!newstop!sun-barr!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!brian

Show Full Headers
Complete Article Headers
Message-ID: <10095@ucsd.Edu>
Subject: Suggested NNTP enhancements for user access control
Date: Thu, 02 Nov 1989 17:48:58 +0000
From: brian@ucsd.Edu (Brian Kantor)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.tcp-ip.mbox.zip!gmdzi!unido!mcsun!uunet!convex!texsun!newstop!sun-barr!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!brian
Newsgroups: news.software.nntp,comp.protocols.tcp-ip
Followup-To: news.software.nntp
Organization: The Avant-Garde of the Now, Ltd.
Lines: 95
Posted: Thu Nov 2 18:48:58 1989