Results 1 to 2 of 2
  1. #1

    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] 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

    my /etc/pam.d/httpd file looks like this:
    auth required
    auth required service=system-auth
    auth required
    account required service=system-auth
    password required service=system-auth
    session required service=system-auth
    session optional

    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.


  2. #2

    I'm facing the same problem. System is a Debian Sarge box. Any ideas?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts