From owner-freebsd-questions@FreeBSD.ORG Wed May 25 15:50:27 2005 Return-Path: X-Original-To: questions@freebsd.org 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 D073816A41F for ; Wed, 25 May 2005 15:50:27 +0000 (GMT) (envelope-from me@hexren.net) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8587E43D58 for ; Wed, 25 May 2005 15:50:26 +0000 (GMT) (envelope-from me@hexren.net) Received: by helium.webpack.hosteurope.de running Exim 4.34 using asmtp from pd9e46575.dip.t-dialin.net ([217.228.101.117] helo=hexren.steenbuck.net) id 1Day9J-0003Ca-DP; Wed, 25 May 2005 17:50:25 +0200 Date: Wed, 25 May 2005 17:50:24 +0200 From: Hexren X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <1657183228.20050525175024@hexren.net> To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: mod_auth_pam apache pam X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hexren List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 15:50:27 -0000 Hi, I am trying to authentificate user against the system user database using mod_auth_pam-1.1.1 on apache-1.3.33_1. I get the following error in the apache error.log "(2)No such file or directory: access to /www.xxx.net/ failed for 217.228.101.117, reason: authentication error" /etc/pam.d/httpd #cat /etc/pam.d/httpd auth required pam_unix.so debug account required pam_unix.so debug the relevant Directory directive from httpd.conf AuthPAM_Enabled on AllowOverride None AuthName "Web Statistics xxx" AuthType "basic" require group test imho the error has some connection to pam_unix.so, that is because pam_permit.so works as it should (it permits everything). Strangely no error shows up in my system message log. (where I log *.debug level messages) despite the debug flag in /etc/pam.d/httpd. After googling for a while and reading here and there I tried making master.passd readable to the apache user (www) because some people reported that they needed to do that with /etc/shadow on some linux variants. Somebody has an idea what I should test next or how I can solve my problem ? Kind Regards Hexren