🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48451

Re: Got it! ckpasswd -f bug (INN 2.3.0)

#48451
From: bill davidsen
Date: Tue, 19 Sep 2000 00:00
32 lines
1744 bytes
In article <8q7kje$gds$1@nread1.inwind.it>,
Giovanni Lopedote <nospamplease@gmx.net> wrote:

| 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>".

  The original code rejected data which did not contain the ':'
character. I'm not sure that a sanity check on expected format counts as
a "bug."

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!

Technical Details
Message-ID: <8q83h1$gn2$1@newssvr02.news.prodigy.com>
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
References: <8q7kje$gds$1@nread1.inwind.it>

Show Full Headers
Complete Article Headers
Message-ID: <8q83h1$gn2$1@newssvr02.news.prodigy.com>
Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0)
Date: Tue, 19 Sep 2000 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <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-mail
X-Deja-AN: 671659870
X-Trace: newssvr02.news.prodigy.com 969380193 000 192.168.190.236 (19 Sep 2000 16:16:33 GMT)
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com
X-Complaints-To: abuse@prodigy.net