Apache environment variables
| From: | Jeremy Russell | Date: | Mon, 24 Mar 2003 16:49:38 +0000 |
| Subject: | Apache environment variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140863@lists.php.net to get a copy of this message | ||
Hello list.. I have an issue..
I have users athenticating to apache using the ldap_mod_auth module,
when they authenticate it populates the LDAP_USER variable. What I need
is to also populate the REMOTE_USER variable for some other CGI's, I
know I could change them, but there are several written I C so I would
actually like to avoid this.
I want to use php for most of my content. The CGI I have refered to
will be php in the future.
I have tried to use the apache_setenv function to no avail. My syntax
is
apache_sentenv(REMOTE_USER,$user) $user contains the value of LDAP_USER.
$user DOES contain the correct value. I have also trie the putenv()
function, but it didn't work as well. I may be misusing the
apache_setenv function since it has yet to be documented. Any examples,
advice, or a different procedure would be well appreciated.
Thanks in advance!
jrmy