mod_auth_pam and LDAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I am having a weird problem that I cannot figure out.  I have setup PAM 
authentication for services like SSH and FTP that then use the LDAP server to 
authenticate and they work fine.  Now I am trying to do the same thing with 
Apache and I have run into a problem.  I am using the mod_auth_pam module for 
Apache 2.0 but the module will not authenticate through LDAP it will only check 
the local password file and it never seems to use pam_ldap.  Does any one have 
an idea what could be wrong or any ideas on how to trouble shoot this?  Below 
are my log message and config files.

Message file
14:49:15 lanauto httpd(pam_unix)[12791]: authentication failure; logname= 
uid=99 euid=99 tty= ruser= rhost=  user=zack
Apr  3 14:49:23 lanauto httpd(pam_unix)[12791]: authentication failure; 
logname= uid=99 euid=99 tty= ruser= rhost=  user=zack
Apr  3 14:59:25 lanauto httpd(pam_unix)[12789]: authentication failure; 
logname= uid=99 euid=99 tty= ruser= rhost=  user=zack
Apr  3 14:59:50 lanauto httpd(pam_unix)[12786]: authentication failure; 
logname= uid=99 euid=99 tty= ruser= rhost=  user=zack
Apr  3 14:59:54 lanauto httpd(pam_unix)[12786]: authentication failure; 
logname= uid=99 euid=99 tty= ruser= rhost=  user=zack

Pam.d/http
#%PAM-1.0
# They can be LDAP or local authenticated
auth       sufficient   /lib/security/pam_ldap.so
auth       sufficient   /lib/security/pam_unix.so shadow nodelay

# They MUST have an account
account    required     /lib/security/pam_unix.so

# They can authenticate either via LDAP or local passwords.  LDAP users do
# not have valid local passwords.
password   sufficient   /lib/security/pam_ldap.so
password   sufficient   /lib/security/pam_unix.so shadow nullok use_authtok

# Sessions
session    required     /lib/security/pam_unix.so
session    required     /lib/security/pam_limits.so
session    required     /lib/security/pam_ldap.so

the dot htaccess file for the directory

AuthType Basic
AuthName "secure area"
require user zack


thanks
Zack



_______________________________________________

Pam-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux