Article View: news.software.nntp
Article #72101Re: Can I prevent the authentication dialog?
From: Bill Davidsen
Date: Mon, 01 Aug 2005 18:54
Date: Mon, 01 Aug 2005 18:54
54 lines
3449 bytes
3449 bytes
Jeffrey M. Vinocur wrote:
> 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.
>
>
That is pretty!
--
bill davidsen
SBC/Prodigy Yorktown Heights NY data center
http://newsgroups.news.prodigy.com
Technical Details
Message-ID:
<1euHe.69$9U3.34@newssvr24.news.prodigy.net>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!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr24.news.prodigy.net.POSTED!1055e9ad!not-for-mailReferences:
<dcbg8s$jco$1@news.doit.wisc.edu> <dcbooa$phg$1@puck.litech.org> <42EA4357.3070202@doit.wisc.edu> <dcg6ik$8lj$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <1euHe.69$9U3.34@newssvr24.news.prodigy.net> Subject: Re: Can I prevent the authentication dialog? Date: Mon, 01 Aug 2005 18:54:53 GMT From: Bill Davidsen <davidsen@deathstar.prodigy.com> References: <dcbg8s$jco$1@news.doit.wisc.edu> <dcbooa$phg$1@puck.litech.org> <42EA4357.3070202@doit.wisc.edu> <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!border2.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr24.news.prodigy.net.POSTED!1055e9ad!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <dcg6ik$8lj$1@puck.litech.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 54 NNTP-Posting-Host: 207.115.54.37 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr24.news.prodigy.net 1122922493 ST000 207.115.54.37 (Mon, NNTP-Posting-Date: Mon, 01 Aug 2005 14:54:53 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: OP]YS][DWREWSTD[[BCDN_HAQB^H@IPDLXUNNHLHEQR@ETUCCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM