GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
Schema interfaces
Configuration interfaces
Structures
stcClassRefCount
stcConnectionOptions
stcObjectLink
stcObjectLinkNamed
Error codes
DTDL
DADL
Setup

stcConnectionOptions class

Contains the options for the Connection::Connect function.

Syntax

class stcConnectionOptions
{
UInt32 ulKeySize;
 
UInt32 ulKeyExchangeOptions;
UInt32 ulAuthenticationOptions;
UInt32 ulLoginOptions;
 
SecHandle pCredentialsNegotiate;
SecHandle pCredentialsKerberos;
SecHandle pCredentialsNtlm;
 
SEC_WINNT_AUTH_IDENTITY pAuthIdentNegotiate;
SEC_WINNT_AUTH_IDENTITY pAuthIdentKerberos;
SEC_WINNT_AUTH_IDENTITY pAuthIdentNtlm;
SEC_WINNT_AUTH_IDENTITY pAuthIdentPlain;
 
String strServerAccountName;
};

Member

ulKeySize
Type: UInt32
Length of the key (in bits) used in the AES encryption algorithm. Valid values are 128, 192, 256.
ulKeyExchangeOptions
Type: UInt32
Set of flags that specify which key exchange algorithm and options to use. Use the flags defined in KeyExchangeOption.
Value Description
ECDH The Elliptic Curve Diffie-Hellman algorithm.
DH The Diffie-Hellman algorithm.
RSA The RSA algorithm.
SSPI_NEGOTIATE Microsoft Negotiate
SSPI_KERBEROS Microsoft Kerberos
SSPI_NTLM Microsoft NTLM
ulAuthenticationOptions
Type: UInt32
Set of flags that specify which authentication algorithm and options to use. Use the flags defined in AuthenticationOption.
Value Description
ECDSA The Elliptic Curve DSA algorithm.
RSA The RSA algorithm.
ulLoginOptions
Type: UInt32
Set of flags that specify which login algorithm and options to use. Use the flags defined in LoginOption.
Value Description
SSPI_NEGOTIATE Microsoft Negotiate
SSPI_KERBEROS Microsoft Kerberos
SSPI_NTLM Microsoft NTLM
PLAIN Plain text
pCredentialsNegotiate
Type: SecHandle
Credentials, used with the Negotiate algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pCredentialsKerberos
Type: SecHandle
Credentials, used with the Kerberos algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pCredentialsNtlm
Type: SecHandle
Credentials, used with the NTLM algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentNegotiate
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the Negotiate algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentKerberos
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the Kerberos algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentNtlm
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the NTLM algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentPlain
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the plain text login. Set to null if you want to use the credentials of the user who is currently logged in.
strServerAccountName
Type: String
SPN to be used with the algorithms. Mainly used for Kerberos.
© 2022 Mobiland AG