From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 03:21:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B85FA16A4B3 for ; Wed, 24 Sep 2003 03:21:15 -0700 (PDT) Received: from mobile.webweaving.org (ppp-217-133-163-147.cust-adsl.tiscali.it [217.133.163.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7936843FFB for ; Wed, 24 Sep 2003 03:21:14 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from localhost (localhost [127.0.0.1]) by mobile.webweaving.org (8.12.9/8.12.2) with ESMTP id h8O78lvN007575; Wed, 24 Sep 2003 09:08:47 +0200 (CEST) Date: Wed, 24 Sep 2003 09:08:47 +0200 (CEST) From: Dirk-Willem van Gulik To: John Morgan Salomon In-Reply-To: <2885.217.162.114.208.1064357991.squirrel@yt.88.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org Subject: Re: mod_auth_pam/apache2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 10:21:15 -0000 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.