Applies to: desktop apps only
The ServicePrincipalName property gets or sets the service principal name (SPN) that will be used for requesting a Kerberos ticket when delegation using the Simple and Protected Negotiation (SPNEGO) protocol or Kerberos constrained delegation is allowed.
This property is read/write.
HRESULT put_ServicePrincipalName( BSTR bstrServicePrincipalName ); HRESULT get_ServicePrincipalName( BSTR *pbstrServicePrincipalName );
' Data type: String Property ServicePrincipalName( _ ByVal bstrServicePrincipalName As BSTR, _ ByVal pbstrServicePrincipalName As BSTR _ ) As String
String that specifies the SPN that will be used for requesting a Kerberos ticket when delegation using the SPNEGO protocol or Kerberos constrained delegation is allowed.
These property methods return S_OK if the call is successful; otherwise, they return an error code.
This property is read/write. By default, in Forefront TMG Management, the SPN for an individual Web server is set to http/internal_site_name, and the SPN for a server farm is set to http/*. The SPN must match the SPN that is specified on the Delegation tab in the properties of the computer account of the Forefront TMG computer in Active Directory Users and Computers.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010