Dart.Mail Namespace > AuthenticatedSession Class : ServicePrincipleName Property |
<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); }
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.