Date: Tue, 23 Sep 2003 22:59:51 -0000 (GMT) From: "John Morgan Salomon" <john@zog.net> To: questions@freebsd.org Subject: mod_auth_pam/apache2 Message-ID: <2885.217.162.114.208.1064357991.squirrel@yt.88.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2885.217.162.114.208.1064357991.squirrel>
