Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2003 09:08:47 +0200 (CEST)
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        John Morgan Salomon <john@zog.net>
Cc:        questions@freebsd.org
Subject:   Re: mod_auth_pam/apache2
Message-ID:  <Pine.OSX.4.44.0309240904150.7523-100000@mobile.webweaving.org>
In-Reply-To: <2885.217.162.114.208.1064357991.squirrel@yt.88.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 23 Sep 2003, John Morgan Salomon wrote:

> 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.

Which module are you using ? From where ? (www.apache.org/~dirkx/ORA/..)

> auth    required        pam_unix.so     service=system-auth debug
...
> [Tue Sep 23 18:00:25 2003] [error] [client ***.***.***.***] PAM: user
> 'john' - n
> ot authenticated: Authentication failure

I notice you have a service= there - this may be the service name. I know
that the module I did for the ORA conf uses 'httpd' as the pam service
name.

> 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?

Yes :-) But depending on how/what module you use you may also need to do a
AuthGROUP_Enabled yes as to use getgrnam() et.al. to do unix user
checking. Your config likely uses the GroupFile rather than unix groups.

Dw.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSX.4.44.0309240904150.7523-100000>