Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Config Impersonate

Status
Not open for further replies.

2xhelix

IS-IT--Management
Jul 15, 2004
9
CA
After using Impersonate and specifying an account in the webconfig, is it possible in the actual code to retrive the user information BEFORE the impersonation?

Example

User is Bob

ConfigFile says to impersonate after authentication to the
DatabaseUser.

now i want to get Bob back out in the code.

I've been looking at
System.Security.Principal.WindowsIdentity

not sure if that's the right place to look
any help would be appreciated.
thanks.
 
What about User.Identity.Name?

Regards,
Mike

"Don’t get suckered in by the comments – they can be terribly misleading. Debug
only code. – Dave Storer."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top