Apache modauthldap works but REMOTE_USER not there
kheuer2 at gwdg.de
Wed Jul 14 00:15:28 PDT 2004
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
in the cgi-bin section of httpd.conf and and to copy .htaccess to the
Konrad Heuer (kheuer2 at gwdg.de) ____ ___ _______
GWDG / __/______ ___ / _ )/ __/ _ \
Am Fassberg / _// __/ -_) -_) _ |\ \/ // /
37077 Goettingen /_/ /_/ \__/\__/____/___/____/
More information about the freebsd-questions