🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10228

Re: authenticating/logging into newsserver?

#10228
From: Dave Olson
Date: Sat, 25 Jan 2003 06:01
49 lines
3099 bytes
Rosc <fbn1@dandy.net> writes:
| Neil W Rickert <rickert+nn@cs.niu.edu> writes:
| >Roscinante <fbn1@dandy.net> writes:
| >>Just need to know if NN can pass username/password to a newsserver that 
| >>requires authentication?
| >It is working for me on my home system.  I'm using nn-6.6.4, as I recall.
| 
| Got it working. Should've looked closer =)
| Would be a nice feature to add something to the init file to allow specifying 
| username/passwd there (don't care about the potential security risk of plain 
| text passwd's, no worse than plain text sent to the nntpserver..  :P)

Trivial to do, and the comments may still be in the code I wrote as
to why I didn't do that... (I haven't looked at Michael's current
code to see how close that is to what I wrote 3 or 4 years ago, but
the version I wrote/modified and run is still on my website in source form,
as a variant of 6.6.4).

I personally, would dislike seeing that ability in the distributed
code, even controlled by a config variable that defaults to disabled.

It *is* significantly worse from a security perspective to have it in a file,
than just sending it clear text over the network.

It's not easy to solve this in any kind of secure fashion without a significant
amount of infrastructure, so I decided not to make a half-assed attempt at it.

And of course, if security doesn't matter to you, you can always
just put it in the command line...

For example:

====
22:04-redtail:~.14 alias nn
/usr/local/bin/nn nntp-user=olson nntp-password=ABCDEFGHI nntp-server=news.abc.def.gh
newsrc=/usr/people/olson/.newsrc_abc nn-directory=/usr/people/olson/.nn_abc
====

Sure, anybody on the same system can see it with ps, but at least you
are being quite clear that you don't care (in my case, this is a 
home workstation, and only a few people I trust have accounts).

(Obscuring the command line after init wouldn't help on systems like
IRIX, which don't search the stack for the command line.)

Dave Olson
olson@bengaltech.com
http://www.bengaltech.com/public/dave
Technical Details
Message-ID: <olson.1043474462@redtail.bengaltech.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!uni-berlin.de!12-234-213-174.client.attbi.COM!not-for-mail
References: <slrnb1h6gs.4ps.rosc@xanadu.rosc2112.net> <avabll$msa$3@husk.cso.niu.edu> <avbpvn$dlp$1@sun-news.laserlink.net>

Show Full Headers
Complete Article Headers
Message-ID: <olson.1043474462@redtail.bengaltech.com>
Subject: Re: authenticating/logging into newsserver?
Date: Sat, 25 Jan 2003 06:01:02 +0000
From: Dave Olson <olson@redtail.bengaltech.com>
References: <slrnb1h6gs.4ps.rosc@xanadu.rosc2112.net> <avabll$msa$3@husk.cso.niu.edu> <avbpvn$dlp$1@sun-news.laserlink.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!fu-berlin.de!uni-berlin.de!12-234-213-174.client.attbi.COM!not-for-mail
Newsgroups: news.software.nn
Organization: Dave Olson at home
Lines: 48
Reply-To: olson@bengaltech.com
NNTP-Posting-Host: 12-234-213-174.client.attbi.com (12.234.213.174)
X-Trace: fu-berlin.de 1043474997 29657353 12.234.213.174 (16 [97453])
X-Orig-Path: redtail.bengaltech.com!olson