My application is only used within my company. I want to pull the NT Authenticated user that is logged in, cross reference that user with what I have pulled from ldap and verify the user's name is valid. If the username is valid I will assign it to a variable and use that variable to store the name of the user that submitted the requests. Yes, I am trying to get a single sign on method if possible. $_SERVER['REMOTE_ADDR'] works in bringing back the IP Address of the computer I'm kaing the request from, but $_SERVER['REMOTE_USER'] does not return anything. On 7/27/07, Richard Lynch <ceo@xxxxxxxxx> wrote: > > On Fri, July 27, 2007 12:51 pm, Dan Shirah wrote: > > I looked on PHP.net but I couldn't not find anything suitable to > > answer my > > question. > > > > Within PHP, is there a way to pull the name of the user that is > > currently > > logged into the PC? > > That data is not transmitted, by design, in an HTTP request. > > > I know with some of the _SERVER functions you can pull the IP of the > > machine > > and other data, is there a function within this family that would > > work? > > If you can find a JavaScript function to snoop the username, you could > then write that into the URL, I suppose... > > But I suspect that, by design, JavaScript does not do this either. > > Basically, the username on the visitor's computer is both meaningless > and far far far too private to be handing it out arbitrarily. > > It's meaningless in that any user can buy a PC and set up any username > they want on it, and your webserver has NO IDEA what that username > means. > > It's far far far too private, because it's none of your business to > know who I am when I'm surfing. > > If you're trying to get some kind of "one login" system going, there > may or may not be some useful info in the ever-reappearing thread > regarding "Active Directory" and/or LDAP. > > If you're trying to do something else, post whatever it is you are > trying to do, and perhaps you'll get some help. > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/browse/from/lynch > Yeah, I get a buck. So? > >