htaccess and apache2.0

I've read this forum and other places to find a solution for this problem. What I want to achieve is to get passwords and username to work in a .htaccess-secured directory on a Fedora Core 1 box with Apache 2.0.x.

#-----------------
AuthPAM_Enabled on
order allow,deny
allow from all
require group site2
Authname Passordsikret
Authtype Basic
AuthAuthoritative off
#------------------

In /var/log/messages I get this error:
httpd(pam_unix)[XXXX]: authentication failure; logname= uid=xx euid=xx tty= ruser= rhost= user=xxxx

In /var/log/httpd/error_log I get:
[error] [client xxx.xxx.x.x] PAM: user 'xxxxxxxxx' - not authenticated: Authentication failure

(X's set in to hide numbers and usernames)

I also added this line to my httpd.conf
# %0 is there because sitename is the directory-name...
<Directory "/home/sites/%0/web">
AllowOverride All
</Directory>

my /etc/pam.d/httpd file looks like this:
#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so

I've installed mod_auth_pam on the box...

Hope this helps someone to see what's wrong.

Let me know if there is anything else you guys need to see why this is happening.

Yours,
Trond

 

 

 

 

Top