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

Pam and apache pam_auth_module



    Has anyone gotten this to work? 

    I'm not having any luck at all with it. 

    I've got:
LoadModule anon_auth_module   modules/mod_auth_anon.so
LoadModule db_auth_module     modules/mod_auth_db.so
LoadModule pam_auth_module    modules/mod_auth_pam.so
#LoadModule digest_module      modules/mod_digest.so

    in httpd.conf, as well as:
AddModule mod_auth_anon.c
AddModule mod_auth_db.c
AddModule mod_auth_pam.c
#AddModule mod_digest.c,

    and:
AuthType Basic
AuthPAM_FallThrough on
AuthPAM_Enabled on
   <limit GET POST>
         Require valid-user
    </limit>
AuthName "AW employees only"
AuthUserFile "/var/www/htpasswd"

in the <Directory "/var/www/html"> section (I want to protect the whole
tree). 

In /etc/pam.d/httpd I have :
auth       required  /lib/security/pam_unix.so debug
auth       required  /lib/security/pam_warn.so debug
account    required  /lib/security/pam_unix.so debug
account    required  /lib/security/pam_warn.so debug

(I've tried a couple different things, but this seems the least
problematic of all). 

With all of this I get: 

Dec 10 14:20:06 monitor02-red PAM_unix[936]: authentication failure; (uid=48) -> petro for httpd service
Dec 10 14:20:06 monitor02-red PAM-warn[936]: service: httpd [on terminal: <unknown>]
Dec 10 14:20:06 monitor02-red PAM-warn[936]: user: (uid=48) -> petro [remote: ?nobody@?nowhere]

    
    Suggestions? 
-- 
Share and Enjoy. 





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