🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48543

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

#48543
From: Curt Welch
Date: Tue, 26 Sep 2000 01:51
81 lines
4893 bytes
"Giovanni Lopedote" <nospamplease@gmx.net> wrote:
> It seems this is becoming a personal question for you, and probably it's
> gonna end up with a flame, so this is my last post about this topic.
> Probably you don't have the good habit of reading a whole message before
> writing a reply.

Giovanni, I'm sorry, but you are wrong and Bill is right.  Maybe this is
just a language issue and you aren't understanding the point Bill was
making.  Or maybe you think he doesn't understand yours.  He does.

The program would not accept input files in the format:

user1:password1
user2:password2

This is because it was neven designed to accept password files in that
format.  It was designed for reading unix password files which have
look something like this:

user:password:uid:gid:gecos:dir:shell

With that format of input, the code had to look for, and null terminate,
the colon after the encrypted password.  How it behaves if the colon is
missing is not important.  The author choose to make it pretend like the
line was never found by returning 0.

You are right in the fact that the program would not accept password
files in the format you wanted it to. And your change allows the code
to accept both now.

It was a "bug" for you because it didn't do what you though it should
do.  We understant that.  But it wasn't a real bug, because the code did
exactly what it was designed to do.  Saying it was a bug implies the person
who wrote the code made a mistake.  He didn't.  The only mistake here is
that you didn't understand the orginal code.

If by "bug" you simply mean the code doesn't have a feature you want it
do, then you are using the term "bug" wrong.

In your orginal message, you wrote:
> 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.

You were very wrong here when you sait it "won't work at all". It worked
fine, you just had no clue how to make it work.  All you had to do was add
colons to your input file after the encrypted password.

What you should have said is "it won't work at all for an apache format
password file".

And then you wrote:
> now it works and accepts also lines in the form "<user>:<encrypted
> pass>:<other crap, ignored>".

You write that as if you not only fixed it, but made it accept lines
in this other format as well.  You clearly had no clue as to
what the code did before you modified it.  I assume you have never
worked with Unix password files before so you didn't understand what
the documentation (or the code) was doing (or why).  That's fine.  We all
live and learn.

But it seems that you also didn't undertand Bill's multiple posts.  All
he was trying to say is that your change to the code didn't fix a
bug as you claimed, but that it simply modified the code to allow
it to accept yet another file format.  He understands that your change
make it work for your format password files and that it didn't work for
those files before your change.  That's not what he was talking about.

I hope you understand his point of view now.  If you don't, I'll be
happy to try to explain it to you some more.  I know you are not
stupid, so it must just be a language or pride issue that prevents
you from understanding what we are trying to say.  Or maybe you did
finally undetstand what he was talking about and I've just wasted
my time writing all this :)....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20000925215105.602$fW@newsreader.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!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!fr.clara.net!small.fr.clara.net!xfer10.netnews.com!netnews.com!europa.netcrusader.net!152.163.239.131!portc03.blue.aol.com!feed.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mail
References: <8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net> <8qdibr$549g$1@newssvr06-en0.news.prodigy.com> <8qf9nm$fm8$1@nread1.inwind.it>

Show Full Headers
Complete Article Headers
Message-ID: <20000925215105.602$fW@newsreader.com>
Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0)
Date: Tue, 26 Sep 2000 01:51:05 +0000
From: curt@kcwc.com (Curt Welch)
References: <8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net> <8qdibr$549g$1@newssvr06-en0.news.prodigy.com> <8qf9nm$fm8$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!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!fr.clara.net!small.fr.clara.net!xfer10.netnews.com!netnews.com!europa.netcrusader.net!152.163.239.131!portc03.blue.aol.com!feed.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 80