cleanair4me46
Technical User
I have two servers in my Intranet environment and we only use Windows workstations to login to the Intranet and view the Intranet web pages. The two web servers in my Intranet are Windows and Solaris. On the Windows Intranet server (with Windows Integrated authentication turned on) I can fetch the Intranet Windows login username using CGI.Auth_User in ColdFusion page. Please advise how I can fetch Windows login username using PHP 5 on Solaris 10 server? I tried many different attempts and none of them printed anything.
Here is what I used:
Please advise.
Here is what I used:
Code:
echo $_ENV["USERNAME"];
echo $_ENV['USERNAME'];
echo $_SERVER["REMTE_USER"];
echo $_SERVER['REMTE_USER'];
echo $_SERVER['REMOTE_USER'];
echo $_SERVER["REMOTE_USER"];
echo $_SERVER['AUTH_USER'];
echo $_SERVER["AUTH_USER"];
echo $PHP_AUTH_USER;
Please advise.