0

Possible Duplicate:
Windows Impersonation from C#
How do you get a User Identity?

I have an application that pulls data from intranet systems and displays it to employees. The issue I have now is that everything is ran under my credentials, so theres no way to track who makes changes, etc.

How can I get the domain credentials from the person who is access the script? Its ASP.Net with C# (.Net 4.0)

Community
  • 1
  • 1
Sugitime
  • 1,818
  • 4
  • 23
  • 44

1 Answers1

1

You are looking to impersonate the identity of the current user. See examples #1 or #3.

Reacher Gilt
  • 1,813
  • 12
  • 26
  • That did it. Also ran into getting a 500 error when setting impersonate to true, so I used this: http://www.velocityreviews.com/forums/t113662-internal-server-error.html – Sugitime Oct 24 '12 at 22:09