Re: getting authentication information from apache
| From: | Ryan | Date: | Fri, 23 Feb 2007 20:33:22 +0000 |
| Subject: | Re: getting authentication information from apache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249318@lists.php.net to get a copy of this message | ||
Jochem,
Hmm, not sure what I'm looking for, but from what I've read, the
REMOTE_USER should contain this informaion, mine seems to be empty.
array(30) {
.
.
.
["REMOTE_USER"]=>
string(0) ""
.. Thanks, Ryan On 2/23/07, Jochem Maas <jochem@iamjochem.com> wrote:
Ryan wrote: Hello, I'm new to php and I have am running php on apache. I already have ldap authentication set up in apache would rather not create a separate system for php. What would be ideal would be to get the current authenticated user from the apache environment. At this point I'm grabbing at straws, but so far I've tried.... $ret = apache_getenv("LDAP_USER"); echo $ret; echo $_SERVER['REMOTE_USER']; echo $_SERVER['PHP_AUTH_DIGEST']; $ret = apache_getenv('PHP_AUTH_DIGEST'); does this offer any clue?: var_dump($_ENV, $_SERVER); None of these work. Has anyone done this?? Thanks, Ryan