PowerTCP Mail for .NET
ServicePrincipleName Property




Gets or sets the Service Principle Name (SPN) (used for GSSAPI and NTLM authentication only).
Syntax
<DefaultValueAttribute()>
Public Property ServicePrincipleName As String
Dim instance As AuthenticatedSession
Dim value As String
 
instance.ServicePrincipleName = value
 
value = instance.ServicePrincipleName
[DefaultValue()]
public string ServicePrincipleName {get; set;}
[DefaultValue()]
public: __property string* get_ServicePrincipleName();
public: __property void set_ServicePrincipleName( 
   string* value
);
[DefaultValue()]
public:
property String^ ServicePrincipleName {
   String^ get();
   void set (    String^ value);
}
Remarks

If not set, the default values of "IMAP/hostname", "POP/hostname" and "SMTP/hostname" are used, where Session.RemoteEndPoint provides the hostname.

This property is used for GSSAPI or NTLM authentication. It specifies the service and hostname where that service is provided. Use "setspn -L hostname" at the command prompt to find out what SPNs are available at the specified hostname.

When the current user is logged on as part of a domain and Username is null or empty, setting the ServicePrincipleName is sufficient to use the Microsoft "Single Sign On" feature (the client will be authenticated as the currently authenticated user).

If Username is not null or empty, then Username, Password and Domain will be used to authenticate to the server. Use this technique to access another user's account.

See Also

Reference

AuthenticatedSession Class
AuthenticatedSession Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic