tags:

views:

1657

answers:

2

I'm trying to set up client impersonation on my service.

I need to set a value for the servicePrincipalName of my services endPoint

I'm looking at this but still cannot quite figure it out
http://technet.microsoft.com/en-us/library/cc961723.aspx

My service is hosted in a console app on a server that we'll call ServerName1.
The Uri is: "net.tcp://ServerName1:9990/TestService1/"

What specifically should my servicePrincipalName be?

I tried, with no joy:

<identity>
    <servicePrincipalName value="ServerName1" />
</identity>
A: 

The name of the user you wish the service to user (execute under). So if you want to execute it under 'local network' credentials the above XML should look like:

<identity>
    <servicePrincipalName value="Local Network" />
</identity>
Rune FS
So is there a list of accepted values that can be used here i.e. "Local Network" being one of them? What value should it be if i want to use the calling clients user credentials?
+1  A: 

Configuring servicePrincipleName is a difficult topic to describe it in a few words Perhaps these articles will help http://msdn.microsoft.com/en-us/library/bb628618.aspx http://msdn.microsoft.com/en-us/magazine/cc163570.aspx#S6

Most probably, you need to configure it the following way

<identity>
    <servicePrincipalName value="HOST/ServerName1:9990" />
</identity>

We usually use userPrincipalName instead of servicePrincipalName, like this

<identity>
  <userPrincipalName value="[email protected]" />
</identity>
Bogdan_Ch