I am using WAMP 3.1 with php 5.6 on Windows machine. Could you please help me with some good guide how can I get Active Directory user name of user on my index.php page? For example:
Hello "USER1" from "MYDOMAIN"
This is what i tried so far but no success:
print $_SERVER['AUTH_USER'];
print $_SERVER['REMOTE_USER'];
print $_SERVER['LOGON_USER'];
print $_SERVER['AUTH_USER'];
print $_SERVER['REDIRECT_LOGON_USER'];
print $_SERVER['REDIRECT_AUTH_USER'];
Only think that works is get users domain with:
$_SERVER['REMOTE_ADDR']