Date: Wed, 14 Jul 2004 09:15:19 +0200 (CEST) From: Konrad Heuer <kheuer2@gwdg.de> To: freebsd-questions@freebsd.org Subject: Re: Apache modauthldap works but REMOTE_USER not there Message-ID: <20040714091215.Q28795@gwdu60.gwdg.de> In-Reply-To: <20040713163922.X28795@gwdu60.gwdg.de> References: <20040713163922.X28795@gwdu60.gwdg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040714091215.Q28795>