I want my web service (using servicestack, if that matters) to be able to authenticate against the AD, and then switch identity to that user.
I see quite a few tutorials on how to authenticate against active directory, but don't see anything related to actual impersonation.
Basically I want something along those lines:
DirectoryEntry user = // authenticate against AD
// Switch current user identity
// Do stuff