I have run into a brick wall with a Windows Service I wrote. The Windows Service is a proxy server for Internet Explorer. I am using the C# proxy from Mentalis (http://www.mentalis.org/soft/projects/proxy/) with some minor tweaks to make it run as a service.
IE can connect to my proxy and get the webpage it wants without any problems but I would like to know which Windows user is hitting the proxy. WindowsIdentity.GetCurrent().Name returns the account that the service is running under (NT AUTHORITY\SYSTEM).
How can I determine the user making the request? Is this possible?
You have to implement authentication with your proxy server in order to determine the user. Otherwise the short answer is no, it is not possible.