🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #11421

Re: Replace Google Groups with ?

#11421
From: John F. Morse
Date: Wed, 08 Aug 2012 10:44
226 lines
10798 bytes
Aaron W. Hsu wrote:
> "John F. Morse" <john@example.invalid> writes:
>>     
>
> 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.
>   


Understood. It's one of those personal preferences and familiarization 
issues.


> 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.
>   


Understood. It will take me some time to even compile the patched NN you 
supplied.

Also note the ChangeLog in that tarball, lines 855-857:

    From: Tim <tim@sleepy.wojomedia.com>
        nntp-user and nntp-password should be settable in the init file.
        Fixed.


This now works after I modified the readers.conf on a test server, and 
could then be asked for the authinfo data.

I was also able to change the default editor from vi to nano with the 
":set editor nano" command. I made it permanent by putting the entry in 
the ~/.nn/init file.


> 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.
>   


Clients do send authentication information, or requests, but the server 
is actually authenticating them.

You might think of this authenticating as checking for access 
privileges. If found, then the server authenticates them ("makes them 
authenticated").

It is very complicated as I mentioned earlier. Please read the 
readers.conf(5) man page, especially the Summary and the Examples sections.

http://www.eyrie.org/~eagle/software/inn/docs/readers.conf.html

Older version: http://linux.die.net/man/5/readers.conf


>> 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.
>   


Are you using the latest NNTP RFCs?

http://asg.web.cmu.edu/rfc/rfc4643.html#sec-2

http://asg.web.cmu.edu/rfc/rfc4643.html#sec-2.2

What about NNRP, which is actually doing the authentication checks, and 
setting the flags when a client does gain access privileges? 
http://en.wikipedia.org/wiki/NNRP#Network_News_Reader_Protocol


200 news102.my.net InterNetNews NNRP server INN 2.5.2 ready (no posting)
CAPABILITIES
101 Capability list:
VERSION 2
IMPLEMENTATION INN 2.5.2
AUTHINFO USER SASL
HDR
LIST ACTIVE ACTIVE.TIMES DISTRIB.PATS HEADERS NEWSGROUPS OVERVIEW.FMT
NEWNEWS
OVER
READER
SASL CRAM-MD5 DIGEST-MD5 LOGIN PLAIN NTLM
STARTTLS
..


I've sent this message to the current INN maintainer, and we'll see if 
he can clear the issue so we both can be on the same page.

His job involves foreign travel away from his home in France, so it may 
be a few days, or even weeks.

When I hear from him, I'll let you know.

I might add what I discovered tonight while testing NN with the modified 
test server.

I edited the news server's /etc/news/readers.conf file to allow only 
authenticated users. Basically by commenting out the stanzas associated 
with a fall-through into the unauthenticated access stanza providing 
access to only the local.info group.

When I connected with NN, I was asked for a username and then password, 
and I then had full access to all of the groups.

That proves NN will work for a server that doesn't have a combination of 
open and closed groups, where the unauthenticated connections fall 
through and can only access the open groups.

Here is the /var/log/news/news.notice log for the NNRP daemon using PID 
26489 for the test message:


Aug  8 01:56:54 news5 nnrpd[26489]: hardy.my.net (192.168.30.10) connect 
- port 119
Aug  8 01:57:03 news5 nnrpd[26489]: hardy.my.net user john
Aug  8 01:57:10 news5 nnrpd[26489]: hardy.my.net group local.test 0
Aug  8 02:03:08 news5 nnrpd[26489]: SERVER perl filtering enabled
Aug  8 02:03:09 news5 nnrpd[26489]: hardy.my.net post ok 
<jvt2vc$prp$1@news5.my.net>
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net group local.test 1
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net exit articles 1 groups 2
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net posts received 1 rejected 0
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net times user 2.484 system 
1.604 idle 0.029 elapsed 455.987
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net artstats get 1 time 0 
size 839
Aug  8 02:04:29 news5 nnrpd[26489]: hardy.my.net time 456141 idle 
451217(13) readart 0(1) nntpwrite 1743(61644)


You will notice the second line is where the authentication was 
accepted. Then the group command was accepted. I posted one test message 
which was filtered by the Cleanfeed Perl filter, the post was OKed and a 
M-ID assigned.

Then it was handed off to innd, and stats were noted.

The innd server accepted and wrote the article to the spool, then caused 
innfeed to send it to all of the peers. From /var/log/news/news :


Aug  8 02:03:09.000 + localhost <jvt2vc$prp$1@news5.my.net> 792 news11 
news102 inpaths!


The above shows the date and time the article arrived at the innd (INN 
daemon), the "+" means it was accepted, and "localhost" was from where. 
Then the M-ID, followed by 792, the size in bytes. It then was sent out 
by innfeed to news11, news102, and to a file :inpaths" for later 
processing and mailing to the Top1000 site.

The news102 is the main reader server. The news11 is a filtering server 
that hands off articles to news2, which is a backup transit server. Then 
the article goes to the main transit server which sends the article out 
to multiple peers around the world. However, in this case, since this 
article was posted in a "local" group, the transit server will not 
propagate the article into Usenet.

Here is what innfeed logged in /var/log/news/news.notice :


Aug  8 02:03:09 news5 innfeed[17439]: news11:0 connected
Aug  8 02:03:09 news5 innfeed[17439]: news11 remote MODE STREAM
Aug  8 02:12:43 news5 innfeed[17439]: news102 checkpoint seconds 600 
offered 513 accepted 248 refused 0 rejected 265 missing 0 accsize 662424 
rejsize 2725196 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 
0 queue 0.0/200:97,3,0,0,0,0
Aug  8 02:13:09 news5 innfeed[17439]: news11 checkpoint seconds 600 
offered 1 accepted 1 refused 0 rejected 0 missing 0 accsize 795 rejsize 
0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 
0.0/200:100,0,0,0,0,0
Aug  8 02:13:09 news5 innfeed[17439]: news11:0 idle tearing down connection
Aug  8 02:13:09 news5 innfeed[17439]: news11:0 checkpoint seconds 600 
offered 1 accepted 1 refused 0 rejected 0 accsize 795 rejsize 0
Aug  8 02:13:09 news5 innfeed[17439]: news11:0 final seconds 600 offered 
1 accepted 1 refused 0 rejected 0 accsize 795 rejsize 0
Aug  8 02:13:09 news5 innfeed[17439]: news11 checkpoint seconds 0 
offered 0 accepted 0 refused 0 rejected 0 missing 0 accsize 0 rejsize 0 
spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 
0.0/200:100,0,0,0,0,0
Aug  8 02:13:10 news5 innfeed[17439]: news11 final seconds 600 offered 1 
accepted 1 refused 0 rejected 0 missing 0 accsize 795 rejsize 0 spooled 
0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 
0.0/200:100,0,0,0,0,0


I will wait until the INN developer responds with something.

Again, thanks for all the assistance you've provided.


-- 
John

When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <jvtfv6$ep4$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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.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> <WJednQ6PTucoErzNnZ2dnUVZ_sudnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <jvtfv6$ep4$1@n102.xanadu-bbs.net>
Subject: Re: Replace Google Groups with ?
Date: Wed, 08 Aug 2012 05:44:55 -0500
From: "John F. Morse" <john@example.invalid>
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> <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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nn
Organization: Xanadu BBS
Lines: 226
Reply-To: dont.bother
NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Wed, 8 Aug 2012 10:44:54 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
In-Reply-To: <WJednQ6PTucoErzNnZ2dnUVZ_sudnZ2d@giganews.com>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 10495