views:

190

answers:

0

I've migrated some code from plain old web services in .Net 2.0 to WCF but I missed a requirement in the code and now have an issue.

The new WCF services take the currently logged on domain user and pass their details through to the server so they don't need to sign on. This means all WCF services run under the context of the user accessing them.

The old IIS / web service way authenticated against the domain user and then used identity impersonatation on the server to run the web service code under another fixed user.

The problem I have is that the end users do not have write access to the event log or specific network shares on the server, they would have before as the user was a fixed server one.

So, is it possible to authenticate as the domain user but then run under the context of another user once that has happened? There is so much code that finding the right spots to do identity impersonation will be a major pain.

Thanks in advance

Ryan