🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #11419

Re: Replace Google Groups with ?

#11419
From: Aaron W. Hsu
Date: Tue, 07 Aug 2012 21:59
135 lines
8564 bytes
"John F. Morse" <john@example.invalid> writes:

>Historically there was little or no need to authenticate. 

The important thing out of this discussion relating to authentication is 
that there are many different points at which NNTP permits authentication 
to happen, and some combinations of server settings can result in missed 
information unless the client side preempts any explicit authentication 
request (480's) on the server side. 

Unlike a protocol like HTTP or SSH, authentication is not an "on/off" 
switch in NNTP, and authentication does not occur as any part of the 
initial handshake between client and server in NNTP. Rather, a client 
can, on its own, and at any time during the course of an NNTP session 
connection, send authentication information if it feels like it. The server, 
on its side, has no means of asking for authentication information *before* 
a command is completed, but instead, can only respond that actions 
are not permitted unless authentication information not yet provided 
is provided by the client. This requires more flexibility in the clients, 
because some servers (your server for instance) may do different things 
with authenticated and non-authenticated users, without ever indicating 
this to the client; indeed, NNTP provides for no means of indicating such 
things explicitly, but only allows for the server to reject a command
based on authentication reasons. In order to map over all combinations 
of authentication patterns, therefore, it is requisite on the client to 
provide a means for explicit authentication at any time during a connection, 
including user specified points such as after the initial greeting, as 
well as on demand after receiving a 480 response code. 

Up until my recent patches, NN provided for on demand authentication, 
as well as a special case at the beginning at the only time when the 
server can indicate privileges in an explicit code (200 vs 201), but 
did not provide for forced user authentication after the initial 
handshake; it does now. 

(The above is just a recap in case anyone searches the archives.)

>That is why I made the statement that NN was rather "old" (or however I 
>worded it). You are using NN in the old school philosophy, on servers 
>protected in different ways (known IP netblock access from a cable ISP 
>for instance). And from NSPs that have only one set of authentication 
>access path privilege.

I wouldn't call my use old school, just less dynamic than your configuration,
which, in its own is not really "new" since servers could have done this 
sort of things for a long time now. 

>That is a choice that you have to make, of course. I somehow hope you 
>will keep plodding and fixing NN, if for no other reason than to satisfy 
>your own desire to use an old friend. I'm sure others will chime in with 
>similar views.

The reason that I continue to maintain and enhance NN, despite the existance 
of hipper and newer alternatives (trn, tin, and slrn are all quite old 
alternatives, actually, and tin is a contemporary of NN), is that the 
reading workflow of NN is the workflow that allows me to read through my 
messages with the most ease and the least active mental motion. Very 
little clicking or keystrokes per message read and especially per message
*not* read are needed in NN, and that's really the main reason I stick 
with it. It's a testament to how useful I find this approach that I am 
willing to invest time into enhancing and maintaining the code, which is 
something that I would not normally do in most cases. 

>Considering your patch, I don't know GitHub at all, and barely can make 
>my way around the trac system that INN developers use.

Sorry about that. :-) Using git(1) is probably more than you want to learn 
to get the patch, but you can get a snapshop tarball of the code here:

	https://github.com/arcfide/Unicode-NN/tarball/master

With that you can build a new NN from source.

>I can apply patches using the patch command, but that requires a diff 
>file, and is for source or Perl, Python, BASH, and other scripting 
>languages.

You can use patch on the NN source, and the git-format-patch(1) command 
is what you would use to generate such a patch from the git source, but 
that is all probably more than you want to do. It's easier to just grab 
the new tarball.

>If what you are doing for a patch is writing a new source, I would need 
>to compile it. I hesitate to do this because my NN is a Debian package, 
>and as you suspect, is customized for Debian-based systems.

Indeed. You could probably get away with using their build scripts, but, 
as you say, it's more work than you probably want to invest in something 
like this. 

>I think I'd just as soon  wait until the patched (new) NN is available
>for Debian (hint: submit it).

I won't be submitting a new NN for a while yet, there are a couple more 
things that I consider must-haves before I release a 6.8 release. These 
are primarily:

  * Unicode support for quoted-printable
  * A unified and comprehensive collection of the documentation surrounding 
    NN in a convenient form
    
Neither of these takes little time, and I think it might be a while till 
I can release these things. However, the tarball is always around, as above, 
so people can get to it. 

>INN authenticates on initial connection, so later unauthorized access 
>"groups" are unknown at that time.

INN as a news server actually doesn't authenticate anything, IIUC. Rather, 
your clients send authentication information on their own to INN before 
doing anything else. I also fully expect your INN server to send 480 
codes later in the connection, and a client that successfully authenticates 
later in the connection should be able to reget the active file, for 
instance, with the new listing.

>The initial connection authentication does authorize the connection to 
>certain groups, but you cannot go back and re-authenticate and get into 
>another authorized set of groups.

You should be able to according to the NNTP protocol. That is, if I run a 
LIST as an unauthenticated user, and then I authenticate, and run LIST 
again, I should get a different result. 

>Thank you for your efforts, Aaron. I'll try and get this version running 
>on something soon.

>Please submit to Debian where it will be available for Sid and maybe Wheezy.

There is still more work to be done for NN before sending it out to these 
other distros, unfortunately. 6.7.3 is likely to stick around for a while, 
yet.

-- 
Aaron W. Hsu | arcfide@sacrideo.us | http://www.sacrideo.us
Programming is just another word for the lost art of thinking.
Technical Details
Message-ID: <WJednQ6PTucoErzNnZ2dnUVZ_sudnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.ams.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <RrWdnUVuhPI0i73NnZ2dnUVZ_u-dnZ2d@giganews.com> <jvqcrj$l6b$1@n102.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <WJednQ6PTucoErzNnZ2dnUVZ_sudnZ2d@giganews.com>
Subject: Re: Replace Google Groups with ?
Date: Tue, 07 Aug 2012 16:59:17 -0500
From: Aaron W. Hsu <arcfide@sacrideo.us>
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <RrWdnUVuhPI0i73NnZ2dnUVZ_u-dnZ2d@giganews.com> <jvqcrj$l6b$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.ams.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 07 Aug 2012 16:59:16 -0500
Newsgroups: news.software.nn
User-Agent: nn/6.7.3
Lines: 135
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Y1EZtSN9c3tUzTPuN1pikKVoM3voPyqPd3oDHaiDnvUIVw/p3VYxinSoXKjpuh0aN7QFGZdx+zu7Fnz!qv5ed5PVuIiuGsd/s/xAHFDnx4UIP4R7W2BVkeIEUIEg4kqeg4Ve3T1dwfCR+XLOjsW0mc5K0A==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.40
X-Original-Bytes: 8132