tags:

views:

212

answers:

3

If user logged onto machine with his domain name and password, how to get his user name on the server side?

+2  A: 

The user's client has to report the username to you. Without things like a browser-plugin, that adds the username to each http request, i can't think of an easy way to do this.

lajuette
A: 

Without any extra software (commonly referred to as single sign-on), providing an authentication token somehow, this is not possible.

Or are you asking how to get the username of the system user running the server application?

roe
Nope, the system user name i can get from $SERVER variable, it's easy :)Thanks, anyway!
stee1rat
+1  A: 

I assume you're talking of windows domain. Google for PHP NTLM

Col. Shrapnel