I have searched and searched in a feeble attempt to find a method to access the username of the windows user currently logged into windows. I have no idea if this can even be done.
Thanx for trying to help
Deadpool
Accessing Windows Login using php??????
Moderator: General Moderators
-
deadpool_19
- Forum Newbie
- Posts: 1
- Joined: Wed Apr 07, 2004 12:13 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Do:
if it's anywhere it'll be in $_SERVER.
Mac
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';Mac
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Are you looking to see the remote user, or the server's user?
Remote isn't quite simple unless you are on a LAN with it.
in Win32, GetUserName() and GetUserNameEx() are used to query the calling threads username. LookupAccountName() could also be useful.
Remote isn't quite simple unless you are on a LAN with it.
in Win32, GetUserName() and GetUserNameEx() are used to query the calling threads username. LookupAccountName() could also be useful.
auth class
-
Hi,
perhaps this will help also:
http://www.phpclasses.org/browse/package/1556.html
-
Hi,
perhaps this will help also:
http://www.phpclasses.org/browse/package/1556.html
djotThis class is meant to validate the access of an authenticated user to page a page associated with a given Windows Active directory group ...
-
PHP Win32 API
http://www.php.net/w32api
http://www.php.net/w32api