Article View: news.software.nntp
Article #72095Re: Can I prevent the authentication dialog?
From: Jeffrey M. Vinocur
Date: Sat, 30 Jul 2005 15:32
Date: Sat, 30 Jul 2005 15:32
47 lines
2767 bytes
2767 bytes
In article <42EA4357.3070202@doit.wisc.edu>,
Earl Dukerschein <earl.dukerschein@doit.wisc.edu> wrote:
>Jeffrey M. Vinocur wrote:
>
>> 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.
>
>That sounds like a good solution. I have no control over the clients
>that may be used, so it seems like more risk than its worth. Thanks!
I think you're saying that you'd like to have this modification?
Okay, here's what I would do (untested)...
In nnrpd/commands.c (line 218 in the version I have handy),
you'll find this:
if (strcasecmp(av[1], "user") == 0) {
strlcpy(User, av[2], sizeof(User));
Reply("%d PASS required\r\n", NNTP_AUTH_NEXT_VAL);
return;
}
Change it to something like this:
if (strcasecmp(av[1], "user") == 0) {
strlcpy(User, av[2], sizeof(User));
Reply("%d Encrypted required to authenticate, email Earl for help \r\n", NNTP_ACCESS_VAL);
syslog(L_NOTICE, "%s User \"%s\" attempted authentication on insecure nnrpd", Client.host, User);
return;
}
Then nnrpd will try its best to keep clients from using AUTHINFO
user/pass on the open link.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<dcg6ik$8lj$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!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!news.glorb.com!news.litech.org!not-for-mailReferences:
<dcbg8s$jco$1@news.doit.wisc.edu> <dcbooa$phg$1@puck.litech.org> <42EA4357.3070202@doit.wisc.edu>Show Full Headers
Complete Article Headers
Message-ID: <dcg6ik$8lj$1@puck.litech.org> Subject: Re: Can I prevent the authentication dialog? Date: Sat, 30 Jul 2005 15:32:36 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <dcbg8s$jco$1@news.doit.wisc.edu> <dcbooa$phg$1@puck.litech.org> <42EA4357.3070202@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!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 47 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1122737556 8883 66.218.0.75 (30 Jul 2005 15:32:36 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sat, 30 Jul 2005 15:32:36 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)