Article View: news.software.nntp
Article #48452Got it! ckpasswd -f bug (INN 2.3.0)
From: Giovanni Lopedote
Date: Tue, 19 Sep 2000 00:00
Date: Tue, 19 Sep 2000 00:00
28 lines
1394 bytes
1394 bytes
Hi everyone!
I wasn't able get authentication working with INN 2.3.0 and a passwords
file... so I've gone into the code and I've found out why. The -f option of
ckpasswd command won't work at all. The trouble arises in the GetFilePass
function of ckpasswd.c at lines 75-78:
if (!(colon = strchr(iter, ':')))
return(0);
*colon = 0;
strcpy(pass, iter);
I've modified it as follows:
if (colon = strchr(iter, ':'))
*colon = 0;
strcpy(pass, iter);
now it works and accepts also lines in the form "<user>:<encrypted
pass>:<other crap, ignored>".
Giovanni Lopedote
Bari, Italy
neuromante@gmx.net
Technical Details
Message-ID:
<8q7kje$gds$1@nread1.inwind.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <8q7kje$gds$1@nread1.inwind.it> Subject: Got it! ckpasswd -f bug (INN 2.3.0) Date: Tue, 19 Sep 2000 00:00:00 +0000 From: "Giovanni Lopedote" <nospamplease@gmx.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.mbox.zip!not-for-mail X-Deja-AN: 671584281 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@inwind.it X-Trace: nread1.inwind.it 969364910 16828 212.141.254.129 (19 Sep 2000 12:01:50 GMT) Organization: WIND X-MSMail-Priority: Normal NNTP-Posting-Date: 19 Sep 2000 12:01:50 GMT Newsgroups: news.software.nntp