From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 07:15:28 2004 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 CEAE716A4CE for ; Wed, 14 Jul 2004 07:15:28 +0000 (GMT) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC56743D1F for ; Wed, 14 Jul 2004 07:15:27 +0000 (GMT) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.12.11/8.12.8) with ESMTP id i6E7FQOQ003759 for ; Wed, 14 Jul 2004 09:15:26 +0200 (CEST) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost)i6E7FQwB003756 for ; Wed, 14 Jul 2004 09:15:26 +0200 (CEST) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Wed, 14 Jul 2004 09:15:19 +0200 (CEST) From: Konrad Heuer To: freebsd-questions@freebsd.org In-Reply-To: <20040713163922.X28795@gwdu60.gwdg.de> Message-ID: <20040714091215.Q28795@gwdu60.gwdg.de> References: <20040713163922.X28795@gwdu60.gwdg.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Apache modauthldap works but REMOTE_USER not there 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, 14 Jul 2004 07:15:28 -0000 On Tue, 13 Jul 2004, Konrad Heuer wrote: > I want to use modauthldap with Apache 1.3.29 to restrict access to some > web pages, especially to some dynamic ones generated by cgi scripts. > > LDAP authentication seems to work fine with following .htaccess file: > > AuthName "Realm:" > AuthType Basic > AuthLDAPurl ldap://localhost:389/ou=users,dc=domain,dc=country?uid > require valid-user > > The problem is: CGI scripts called by the HTML pages in the protected > directory don't see a REMOTE_USER environment variable (GET method), so > they don't know about the current user. > > Any ideas? I'd greatly appreciate any help. Just for the archives - found the solution by myself: I forgot to include AllowOverride AuthConfig in the cgi-bin section of httpd.conf and and to copy .htaccess to the cgi-bin directory. Sorry ... Konrad Heuer (kheuer2@gwdg.de) ____ ___ _______ GWDG / __/______ ___ / _ )/ __/ _ \ Am Fassberg / _// __/ -_) -_) _ |\ \/ // / 37077 Goettingen /_/ /_/ \__/\__/____/___/____/ Germany