asp.netiisimpersonationapplication-poolapplicationpoolidentity

WindowsIdentity.GetCurrent() vs Request.LogonUserIdentity?


Im trying to understand the difference between assigning permission in here : enter image description here

vs

assigning via impersonation :

enter image description here

1) ive heard that impersonation is used to access resources rather than running exe process

ive tried to run an EXE Process with only impersonation to my user , with NO success.

Later i set the user to the application pool identity - (first picture here) and then i was able to run exe files.


Solution

  • I think you misunderstood/mixed the definition of Pool Identity and Impersonate Identity

    E.g. If you set the Pool Identity to a low privileged user, you will find your web application cannot access the files on your system; but if you set the pool identity to Administrator, your web application can access everything on your system, even restart your computer. Yes, your security is screwed :P

    PS:

    hmmm...these two identities are not related. so you should not put them in a fight :)

    Let met try this: Pool Identity is like your ID to your parents. They know who you are, how old you are, you cannot lie; Impersonate Identity is like your ID card, if you get a fake ID card, you can go to a bar under the age 21, and get drunk xD