tags:

views:

65

answers:

1

Hi there,

I have a client app that calls a WCF service on a different server

in the service I print out the following:
1. ServiceSecurityContext.Current.WindowsIdentity.Name;
2. WindowsIdentity.GetCurrent().Name;

1 above gives me my windows login and 2 gives me the windows login that the server is logged in as

How can i change 2 so that it gives me my windows login (not the login of the server)? Is there a way to force it?

i want to do this because in the WCF service i need to call another service with my original windows login credentials

A: 

Check out these links about impersonating the caller's identity in a WCF service - that'll be what you have to do, basically:

Marc

marc_s