Supporting configuration files
The gateway package bundles supporting configuration files to hold properties for secure JDBC connection modes, such as SSL, Kerberos, and data integrity.
| Configuration file | Purpose |
|
jdbc_conn.properties |
JDBC connection properties for the database connection. Configure the path to this file using the Gate.Jdbc.JdbcPropsFile property. |
|
jdbc_javasys.properties |
Java system properties working in conjunction with other JDBC connection parameters to establish a database connection. Configure the path to this file using the Gate.Jdbc.JavaSystemPropsFile property. |
File format
The supporting configuration files should be in key-value pair format, namely:
key=value
The gateway ignores lines starting with #.
Date security
The gateway can process value field in the form of encrypted data.
Use nco_aes_crypt with AES_FIPS algorithm to encrypt
configuration value. When deployed, ConfigCryptoAlg and
ConfigKeyFile must contain AES_FIPS and the key file
respectively.
Environment Variables
The gateway can expand defined environment variables in value fields.
Properties for the various database connection modes
| Mode | JDBC Properties | Java System properties |
|
SSL |
|
|
|
Kerberos |
|
|
|
Data Integrity |
|
None |
oracle.net.authentication_services
must contain SSL and KERBEROS5, for
example:oracle.net.authentication_services=(KERBEROS5, SSL)
| Mode | JDBC connection properties | Java System properties |
|
Kerberos |
|
|
|
SSL |
None |
|
Configure the following parameters to enable IBM DB2 Kerberos-authenticated connections:
java.security.auth.login.config=$OMNIHOME/gates/jdbc/jaas.conf
kerberosServerPrincipal=<serverPrincipal>@<REALM>
securityMechanism=11 (11 is the value for Kerberos
security).
kerberosServerPrincipal must be the server principal in
KRB5_KTNAME.
securityMechanism=11 denotes using Kerberos authentication.
A sample of Java Authentication and Authorization Service (JAAS) Client configuration is
available in the $OMNIHOME/gates/jdbc/jaas.conf file.
Configurations for passing credentials from the gateway to the DB2 Kerberos service
There are two ways in which the gateway can pass credentials to the DB2 Kerberos service:
- Using the Kerberos cache file
- Not using the Kerberos cache file
Configurations for both methods are described in the following table.
| Using Kerberos Cache Files | Not Using Kerberos Cache Files |
Configure the As the login credentials are obtained from Kerberos cache, the corresponding gateway properties must be empty. Namely:
|
The absence of the Kerberos cache requires the gateway properties to have the login credentials specified in the following properties:
|
Deploying the gateway with non-IBM Java
On secure connections, some vendor JDBC drivers may require certain class packages tied to specific brand and version of Java.
For example, in Kerberos mode, the Oracle JDBC driver invokes the methods from the
sun.security.krb5.* classes, which are available only in Oracle Java.
Consult the driver user guide or the vendor support to ascertain the Java requirement.
To run the gateway using non-IBM Java, perform the steps accordingly.
UNIX:
Update the NCO_GATEWAY_JRE environment variable with the Java home
directory.
Note:
NCO_GATEWAY_JRE is referenced in nco_g_jdbc.env.