🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72084

Re: Can I prevent the authentication dialog?

#72084
From: Jeffrey M. Vinocur
Date: Thu, 28 Jul 2005 23:12
35 lines
2546 bytes
In article <dcbg8s$jco$1@news.doit.wisc.edu>,
Earl Dukerschein  <earl.dukerschein@doit.wisc.edu> wrote:
>
>For the folks still using port 119 without SSL, I can make 
>authentication (inititated from the client side) fail by not having any 
>"auth: <program path>" line in my auth groups.  Eventually the user
>will ask for help, but the user id and password will
>still go over the network a few times.
>
>For port 119, can I set up the News server to stop the authentication 
>dialog at least before the password is sent?

Unfortunately, no.  (I understand your thinking, though.)

The client can send the username at any time, which is how
"always use authentication" works.  At present, nnrpd always
responds affirmatively to this, so the client is free to send the
password.  I don't know what real world clients would do if they
received an error of some kind at that stage, but at least in
theory they might realize to not send the password.

Adding the code to make nnrpd automatically decide whether to
error is a little complicated.  But if you're up for compiling
and keeping around a patched version of nnrpd, you could pretty
easily make one that -always- refused authentication, install
that in the usual place for INN to launch it for port 119
connections, and have inetd spawn the unmodified nnrpd for secure
connections.

If this approach interests you, I could probably provide a patch.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <dcbooa$phg$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news.glorb.com!news.litech.org!not-for-mail
References: <dcbg8s$jco$1@news.doit.wisc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <dcbooa$phg$1@puck.litech.org>
Subject: Re: Can I prevent the authentication dialog?
Date: Thu, 28 Jul 2005 23:12:10 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <dcbg8s$jco$1@news.doit.wisc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news.glorb.com!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 35
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1122592330 26160 66.218.0.75 (28 Jul 2005 23:12:10
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Thu, 28 Jul 2005 23:12:10 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)