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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the current "identitites"

Status
Not open for further replies.

serializer

Programmer
May 15, 2006
143
SE
I am using impersonation functions (WindowsIdentity.Impersonate) to get network access when running as SYSTEM.

I would like to log which user SYSTEM has impersonated as but GetCurrent only returns system. Also, it is possible to impersonate more than once so that SYSTEM gets access to multiple networks.

My qestion is how I can find out which identities my SYSTEM account holds at the moment?
 
my understanding is that if you are using impersonation, then GetCurrent would return the account you are impersonating. Not the system account.

of course, I have only using impersonation in an asp.net context, not a windows service context.

as for multiple impersonations. this article may help
Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top