I cannot seem to get the mod_auth_pam working
My configuration in /etc/apache2/httpd.conf :
Code: Select all
<Directory /var/www/localhost/htdocs/mediawiki>
AllowOverride None
AuthPAM_Enabled on
AuthType Basic
AuthName "secure"
Require group users
</Directory>
Code: Select all
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM unable to dlopen(<*unknown module path*>)
apache2: PAM [dlerror: <*unknown module path*>: cannot open shared object file: No such file or directory]
apache2: PAM adding faulty module: <*unknown module path*>
apache2: PAM unable to dlopen(/lib/security/pam_nologin.so )
apache2: PAM [dlerror: /lib/security/pam_nologin.so : cannot open shared object file: No such file or directory]
apache2: PAM adding faulty module: /lib/security/pam_nologin.so
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
apache2: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Code: Select all
-rw-r--r-- 1 root apache 199 jun 24 22:22 apache2
-rw-r--r-- 1 root apache 402 jun 24 22:04 system-auth
Code: Select all
-rwxr-xr-x 1 root root 6,1K jun 24 22:04 pam_nologin.so/etc/pam.d/apache2 contains :
Code: Select all
auth include system-auth
auth required pam_nologin.so
account include system-auth
password include system-auth
session include system-auth
Kristof
