I would like to ask if it is possible to impersonate at "second hop" at WinRM service using only Kerberos (delegation)?
CredSSP is no solution for me because I cannot prompt user password .. I'm using Windows 2008 R2, C#, .NET 4.0 ...
Scenario: I have client/server application (client is using ODBC driver to communicate with Server). The client grabs current user Windows credentials and pass to the server. The server creates the thread and impersonate caller. From this impersonated thread I'm trying to call remote WinRM service (PowerShell) using Kerberos authentication but it always fails with:
System.Management.Automation.Remoting.PSRemotingTransportException: Processing data from remote server failed with the following error message: Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
So it looks like the caller has no permission ..
If I debug the difference is in ImpersonationLevel property (None vs. Delegation) of current principal.
- If I run same code from console application it works
- My client and server are on the same machine now
Thanks for any advice