I enabled impersonation and Windows authentication.
<authentication mode="Windows" />
<identity impersonate="true" userName="name" password="passord"/>
But Thread.CurrentPrincipal.Identity.Name
returns the name of authenticated user and WindowsIdentity.GetCurrent()
returns impersonated identity.
Shouldn't these identities be the same?
And under which credentials does the code run in this case?