A while ago, I was trying to grab the NT Username, of the person logged into our Intranet (PHP 4.0.6 / NT4 / IIS4 / CGI version), but gave up as I couldn't find a solution.
Today I was trying to find all the Global variables, so I used the following to extract them.
echo '<pre>';
print_r($GLOBALS);
echo '</pre>';
I was amazed to find my domain/username set in 4 different variables (AUTH_USER, LOGON_USER, UNMAPPED_REMOTE_USER and REMOTE_USER). What I find strange is that there is not that much mentioned about these variables in the documentation and they are not in the phpinfo() function.
Are these new ? Anyone else had much experience with them ?
And what would be cool is the ability to check if a user is a member of an NT Group.
I also understand that there is better NT support in 4.0.7.