[KLUG Members] LDAP & PHP

Adam Williams members@kalamazoolinux.org
Tue, 5 Aug 2003 10:05:14 -0400 (EDT)


>> > I don't want to use htaccess.
>> > I want users to login so I have their information. Not neccisarily for
>> > security.
>> You can still have the information if you use htaccess. Apache stores
>> the name of the athenticated user in a variable accessible to PHP.
>> $username = getenv("REMOTE_USER");
>I'd still have to maintain an .htaccess file though. Wouldn't I?

You could either have a .htaccess files to supply mod_auth_ldap with the 
parameters (search base, etc...) or you could just put them in httpd.conf 
if you want the authentication to apply to everything.