<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi group,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm a new user to this list and I signed up to get 
pam_auth_mod to work successfully with apache 2.0 when using .htaccess files and 
no .htpasswd file.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm currently trying to get this to work on a 
fedora system with apache 2.0.50 installed. If someone can tell me how the httpd 
pam-file and the .htaccess file should look like, I'd be very 
gratefull.</FONT></DIV>
<DIV><FONT face=Arial size=2>At the moment I'm getting errors like: 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in /var/log/httpd/error_log:</FONT></DIV>
<DIV><FONT face=Arial size=2>[crit] [client 192.168.1.2] configuration 
error:  couldn't check user.  No user file?: /testdir/</FONT></DIV>
<DIV><FONT face=Arial size=2>[error] [client 192.168.1.2] PAM: user 'xxxxx' - 
not authenticated: Authentication failure</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in /var/log/messages</FONT></DIV>
<DIV><FONT face=Arial size=2>httpd(pam_unix)[3626]: authentication failure; 
logname= uid=48 euid=48 tty= ruser= rhost=  user=xxxxx<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>(xxxxx = username)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the output of cat /etc/pam.d/httpd 
is:<BR>#%PAM-1.0<BR>auth       
required     /lib/security/pam_stack.so 
service=system-auth<BR>account    
required     /lib/security/pam_stack.so 
service=system-auth<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>the .htaccess-file looks like this:</FONT></DIV>
<DIV><FONT face=Arial size=2>#ALL users on the RAQ550 can access this 
directory.<BR>#Access file<BR>order allow,deny<BR>allow from all<BR>require 
valid-user<BR>Authname "Login Name for Access"<BR>Authtype 
Basic<BR>AuthAuthoritative off<BR>AuthPAM_Enabled off<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>(This one results in the error No user file?: 
/testdir/)</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm also trying to get it to work on a fedora fc1 
system with apache 2.0.50 installed - and with a BlueQuartz webadmin-system. 
BlueQuartz is a translation of the Cobalt RAQ550 system for RedHat and Fedora. 
</FONT></DIV>
<DIV><FONT face=Arial size=2>I pretty much get the same errors 
there.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As far as I understand the BQ-system doesn't use 
the shadow-password file. I also read somewhere that the RAQ550 was set up 
so that it wouldn't be possible to use the raq-db with .htaccess because of 
security reasons. </FONT></DIV>
<DIV><FONT face=Arial size=2>During my research I found that Cobalt had a file 
called mod_auth_pam-external so it could work with external databases. Does 
anyone on the list know if there is such a module for apache 2.0?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope someone can help out.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yours,</FONT></DIV>
<DIV><FONT face=Arial size=2>Trond</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>