[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP Apache authorization - presupplying user & password ?

Hi Mike
> I tried setting apache with auth_ldap and got it working well.
> but using your code snipett it fails when getting the remote_user
> info. I printed out all the variable you listed below and everything
> is picked up.. userpassword, etc. excepet REMOTE_USER which is totally
> empty. I can authenticate with apache using the ldap server but
> the php3 scripts just cant pick up the remote user info for some reason.

REMOTE_USER is an environment variable that should get set by apache.
Add phpinfo() to your script. That will list all external variables. You
should find REMOTE_USER in the Apache Environment section.

Norbert Klasen                                   DFN Directory Services
                                          Zentrum für Datenverarbeitung
Tel: +49 7071 29 70335                             Universität Tübingen
Fax: +49 7071 29 5912                                 Wächterstrasse 76
norbert.klasen@zdv.uni-tuebingen.de                      72074 Tübingen