aniston
asked on
What is the client's Windows USER NAME ?
We have several computers on our Windows 2003 domain network. All client PCs are using Windows XP Pro and must login to WIndows to get to the desktop nd their unique profile. From there they normally access the intranet webpage which then asks the agent again to login.
Is there any way with my PHP script to identify what is the user's name that is accessing the script? I am able to extract the IP/Host of the computer hitting the script but how does one translate this into a paritcular user name that has logged in to that PC? Is there some environment variable or must i use Active Directory? I intend on installing an ActiveX control (VB6 or C# not sure) for every IE browser and so I suppose i will have more access to the system details and could get this info transfered to the PHP script for a silent login. But what do i look up?
Thanks.
Is there any way with my PHP script to identify what is the user's name that is accessing the script? I am able to extract the IP/Host of the computer hitting the script but how does one translate this into a paritcular user name that has logged in to that PC? Is there some environment variable or must i use Active Directory? I intend on installing an ActiveX control (VB6 or C# not sure) for every IE browser and so I suppose i will have more access to the system details and could get this info transfered to the PHP script for a silent login. But what do i look up?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The problem is that if you open a http-connection from php it does not include the NTLM-auth-token and thus the webserver thinks its an anonymous access. With default php you will not be able to use WinAuth for those request.
It might be possible to use the curl-extension, but I don't know how to include a NTML-auth-token there.
Why do you need that call to the other script?
It might be possible to use the curl-extension, but I don't know how to include a NTML-auth-token there.
Why do you need that call to the other script?
ASKER
This unusual approach to calling another script is just some patch to get .asp and .php to communicate. It'[s just a patchwork which the newer website wont have to deal with. I just wanted to know the solution in case something similar pops up. Thanks!
ASKER
Thanks.