*BSD News Article 81645


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!newspump.sol.net!ddsw1!news.mcs.net!in-news.erinet.com!bug.rahul.net!rahul.net!a2i!ns2.mainstreet.net!ns1.aplatform.com!pagesat.net!news.digicity.net!usenet
From: Damien Thorn <damien@digicity.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Undefined call to _crypt
Date: Mon, 28 Oct 1996 03:38:22 -0800
Organization: Digital City Communications, Inc.
Lines: 21
Message-ID: <32749B2E.7713@digicity.net>
NNTP-Posting-Host: sidewinder.digicity.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (Win16; I)

Hello -

Been having a battle with getting the "htpasswd" program that
accompanies the Apache and other httpds to compile and work
properly.

Compiling as-is gives an error similar to the one in my
subject line.  When I add -lcrypt when compiling, the resulting
code works, but not properly.

The encrypted password strings wind up being in correct (they
appear to be too short) and thus do not work with Apache.  If I
manually copy a snippet of the master.password file over, Apache
authenticates the user fine (via .htaccess file).

Why does htpasswd not generate properly encrypted password?
Is there another library I need to link it to?  Some other
change that needs to be made to the Makefile or htpasswd.c
before I compile?

Damien