GssApiProvider.GetSspiProvider Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
GetSspiProvider(String, String, String, String, String)
Gets an instance of SSPI-based GSSAPI-compatible authentication provider. Only works on Windows.
Declaration
public static GssApiProvider GetSspiProvider(string mechanism, string targetName, string userName, string password, string domain)
Parameters
Type | Name | Description |
---|---|---|
String | mechanism | Requested SSPI mechanism ('NTLM', 'Kerberos' or 'Negotiate'). |
String | targetName | The target name. If it is set to null ('Nothing' in VB.NET), server hostname will be used instead. |
String | userName | The user name. If it is set to null ('Nothing' in VB.NET), integrated authentication (single sign-on) will be used. |
String | password | User's password. Can be set to null ('Nothing' in VB.NET) if integrated authentication (single sign-on) is to be used. |
String | domain | User's domain. If it is set to null ('Nothing' in VB.NET), it will be determined from the user name. If not available, the default domain will be used. |
Returns
Type | Description |
---|---|
GssApiProvider |