Hi all, Im trying to setup an apache webserver with ldap authenticating over pam.

My apache version is 2.0.52

Ive got this ldap modules installed:

openldap2-client-2.1.4-48
yast2-ldap-client-2.6.5-122
openldap-lib-1.2.13-233
pam_ldap-150-79
nss_ldap-199-53
openldap2-2.1.4-48
openldap2-devel-2.1.4-48

and Ive got pam modules instaled:

pam-0.76-47
pam-modules-2002.8.27-25
yast2-pam-2.6.5-64
pam-devel-0.76-47

Ive 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

<Directory "/opt/apache_v2/htdocs">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
AuthPAM_Enabled on
AuthName "Usuarios locales"
AuthType "basic"
require group localusers
require valid-user
Order allow,deny
Allow from all
</Directory>

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

Ive got the /etc/pam.d/httpd with:

#%PAM-1.0
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so

Ive read somewhere that it maybe necesary to have in lib/security the pam_pwbd.so file to allow shadow access (which Im testing before trying the ldap access) but I dont have this file.

Anyone has any idea whats 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.