December 14th, 2004, 08:27 AM
Join Date: Nov 2004
Time spent in forums: < 1 sec
Reputation Power: 0
Ldap with Pam
Hi all, I´m trying to setup an apache webserver with ldap authenticating over pam.
My apache version is 2.0.52
I´ve got this ldap modules installed:
and I´ve got pam modules instaled:
I´ve got also mod_auth_pam-2.0-1.1.1 module for apache to work with pam.
Apache httpd.conf file has:
LoadModule auth_pam_module modules/mod_auth_pam.so
Options Indexes FollowSymLinks
AuthName "Usuarios locales"
require group localusers
Allow from all
for pam management.
Apache runs on port 80 with user wwwrun with is in the shadow group.
When I browse to my apache server it prompt a window asking for user & password, but when I type this info and press intro, my apache log file throws next message:
[Tue Dec 14 12:58:40 2004] [error] [client x.x.x.x] PAM: user 'bkpdes' - not authenticated: Authentication failure
I´ve got the /etc/pam.d/httpd with:
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so
I´ve read somewhere that it maybe necesary to have in lib/security the pam_pwbd.so file to allow shadow access (which I´m testing before trying the ldap access) but I don´t have this file.
Anyone has any idea what´s wrong ??, or anybody knows how can I config apache access to ldap with pam or have any idea about where to find good information ??
Thx a lot.