Title: Re: Apache authentication with mod_auth_pam
At 12:49 +0200 21/08/00, Olivier van Helden wrote:
For the web site, I'd like to use authentication based on the standard user/group specification, to avoid the management of multiple account per user.

I've found the way to setup authentication in Apache, but it doesn't work with /etc/passwd or /etc/group. Are these file formatted


In the meantime, I've found what seemed to be the correct solution
http://pam.sourceforge.net/mod_auth_pam/

I installed version 1.0a and tried it... but it doesn't work.
When I try to access the pages, I got an authentification dialog, but I always got an error on authentication, as if I had put a wrong userid or password. I've tried with several userid existing on my server. No way.

Sotwares versions:
pam       0.72-20
apache    1.3.12-2
mod_auth_pam.so 1.0a

/etc/httpd/conf/httpd.conf :
LoadModule pam_auth_module    modules/mod_auth_pam.so
(...)

AddModule mod_auth_pam.c
(...)

<Directory /www/restricted>
        Options Includes Indexes
        AuthPAM_Enabled on
        AuthType Basic
        AuthName "Restricted"
        require valid-user
</Directory>

/etc/pam.d/httpd :
#%PAM-1.0
#[For version 1.0 syntax, the above header is optional]
#
# The PAM configuration file for the `httpd' service
#
auth       required   pam_pwdb.so md5
account    required   pam_pwdb.so md5


Reply via email to