mod_auth_pam/apache2
John Morgan Salomon
john at zog.net
Tue Sep 23 15:59:56 PDT 2003
Hiya,
any help would be greatly appreciated (before I send this server airborne.)
I'm trying to set up Apache 2 with mod_auth_pam (or, for that matter,
anything
that will let me use unix passwords to authenticate to a page.)
mod_auth_external
won't do, as I've run into inexplicable freezes compiling.
I have the following scenario:
-user www is a member of group shadow
-/etc/master.passwd and /etc/spwd.db are owned by group shadow, and
chmoded 640 (just for testing).
-All other apache settings (including loading mod_auth_pam.so) seem ok
-Users who need to access directory 'foo' are members of group webauth
My /etc/pam.d/httpd:
auth required pam_unix.so service=system-auth debug
account required pam_unix.so service=system-auth debug
My httpd.conf entry:
<Directory /usr2/www/www.chakraborty.ch/foo>
AllowOverride none
AuthPAM_Enabled on
AuthType Basic
AuthName "foo"
require group webauth
</Directory>
I've also tried this using <Location>, as well as with a .htaccess under
directory 'foo'. However, I am unable to access 'foo', with the usual
uninformative
httpd-error.log entry:
[Tue Sep 23 18:00:25 2003] [error] [client ***.***.***.***] PAM: user
'john' - n
ot authenticated: Authentication failure
What I don't understand is why, if something like sshd can work fine with
PAM, httpd doesn't let me authenticate. Has anyone ever gotten this
working?
Cheers,
-John
More information about the freebsd-questions
mailing list