DB2®ConnectionStringBuilder.Authentication property
Gets or sets the type of authentication to be used with file DSN or DSN-less connectivity.
- Namespace:
IBM.Data.DB2- Assembly:
IBM.Data.DB2(inIBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Property Authentication As String
[C#]
public string Authentication {get; set;}
[C++]
public: __property String* get_Authentication();
public: __property void set_Authentication(String*);
[JScript]
public function get Authentication() : String;
public function set Authentication(String);
Property value
A string that represents the type of authentication to be used. The default value is "Not Specified".
Remarks
The
DB2ConnectionStringBuilder.Authentication property can have
the one of the following values:- SERVER
- SERVER_ENCRYPT
- KERBEROS
- GSSPLUGIN
- CERTIFICATE
You
can specify the SSL client authentication by setting the Authentication property
to the CERTIFICATE value for connection to Db2® for z/OS® servers with
following conditions:
- Db2 for z/OS server must be Version 10 or later. If you are connecting to Db2 for z/OS Version 10 server, Known Issue PM53450 must be installed.
- Connections to Db2 for z/OS server must be a direct connection between Db2 client and supported Db2 for z/OS server.
- You cannot use Db2 Connect server as a gateway to establish connection to target Db2 for z/OS servers.
- The SSLCLientLabel property must also be set.
- A connection to supported Db2 for z/OS servers must be made with the application connection string and optionally the IBM® data server driver configuration file. You cannot use the local database catalog to establish connections to Db2 for z/OS servers.
- You cannot specify a user password.