*BSD News Article 98563


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.ci.com.au!brian.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!inquo!news.caldera.com!enews.sgi.com!nntprelay.mathworks.com!news.mathworks.com!uunet!in1.uu.net!205.231.12.3!news.vcnet.com!JUPITER
From: jamoses@vcnet.com (Jim Moses)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: FreeBSD, Apache and htpasswd
Date: Thu, 26 Jun 97 16:38:32 GMT
Organization: Internet Access of Ventura County 805.383.3500
Lines: 31
Message-ID: <5ou64q$jlq@news.vcnet.com>
NNTP-Posting-Host: dial116-cam1.vcnet.com
X-Newsreader: News Xpress 2.0 Beta #2
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43596

Hello,

I run a webserver Apache 1.2 on a Free BSD 2.1.6 Intel machine.  I have an 
htaccess file and a .htpasswd file.  They ARE correctly written and placed.  
htpasswd compiled flawlessly and generated the .htpasswd file.  I wrote the 
htaccess file for un/pw authentication.

htaccess is:

AuthUserFile /usr/local/www/default/.htpasswd
AuthGroupFile /dev/null
AuthName Admin
AuthType Basic

<Limit GET>
require admin
</Limit>

htpasswd is at /usr/local/www/default/.htpasswd and
looks like this:

admin:G6tXAWsg87hUo

The web browser correctly challenge the user when the directory 
under the html root is accessed, but It will not pass 
authentication.  Authentication continues to fail!  Any ideas what is wrong.  
I needed no library modifications to find the crypt() function when htpasswd 
was compiled.


Thanks,  Jim Moses