Connect to an Oracle database using Kerberos authentication

This topic describes how to configure SecureTransport to connect to an Oracle database using Kerberos authentication. It assumes that the Oracle database has already been kerberized. To use this functionality, you will need to be running SecureTransport 5.5 October 2020 Update or later. It also requires additional configuration actions to be done on both the SecureTransport and the database server.


Before you configure the machine where SecureTransport runs (or will be installed) for Kerberos authentication to an Oracle database, make sure the following prerequisites are fulfilled: 

  • Your Oracle database has been configured for Kerberos Authentication. For step-by-step instructions, refer to the Oracle's Security Guide.
  • On the database server, verify that the following parameters in the sqlnet.ora file are set: 
  • SQLNET.KERBEROS5_KEYTAB = /etc/krb5.keytab



    SQLNET.KERBEROS5_CONF = /etc/krb5.conf



  • You have a running Key Distribution Center (KDC), such as Windows Active Directory, and realm setup
  • You have created an externally authenticated oracle user that corresponds to the Kerberos user to be used
  • The virtual machine, on which you install SecureTransport, has a resolvable FQDN (Fully Qualified Domain Name). If it doesn't, edit the /etc/hostname file to add the following line: <hostname>
  • All participants in a Kerberos realm have accurate system clocks

SecureTransport configuration

The following are the high-level steps on configuring Kerberos authentication for a connection to an Oracle database. This section points out only the settings that you need to know or change for SecureTransport. The procedure is platform-dependant.

  1. Install the Kerberos client packages on the SecureTransport machine.
  2. Edit the /etc/krb5.conf file to reflect your realm setup.
  3. Obtain a forwardable TGT ticket for the Kerberos/Oracle user.
  4. Note The Kerberos ticket cache file must have a static name and must be always readable by SecureTransport.
  5. Configure SecureTransport to use Kerberos authentication when connecting to the database.
    1. Select the Use Kerberos Authentication checkbox.
    2. Specify the location of the Kerberos credential cache file.
    3. Specify the location of the Kerberos configuration file:
      • When Use Kerberos configuration file is unchecked (default), SecureTransport uses the default /etc/krb5.conf file. In this case, SecureTransport keeps the file locally and synchronizes it between nodes. The application monitors the krb5.conf for changes but uses the locally stored file after a restart. All changes to the krb5.conf file must be done through the Server Configuration Files page. To access the page, go to Operations > Server Configuration and click the Configuration Files button.
      • When Use Kerberos configuration file is checked, SecureTransport refers to the Kerberos configuration file directly using its file path. In this case, SecureTransport does not copy the file locally or synchronize it between nodes; instead, you specify a configuration file per node. Whenever there is a change in the Kerberos configuration file, Secure Transport automatically reloads the Kerberos configuration.
    Caution   In an Enterprise Cluster setup, execute all the steps on all of theSecureTransport servers.
  6. For more information on configuring fresh installations, refer to the SecureTransport Installation Guide. To change the database configuration on existing systems, refer to Change the Oracle database configuration.
Caution   In an Enterprise Cluster setup, execute all the steps on all of the SecureTransport servers.


  • When using separate databases for the Server Log and the Transfer log, you need a dedicated Kerberos user for each. The users must use their own Kerberos cache file.
  • When a Kerberos credential expires, the TGT is not renewed by SecureTransport. Ensure that a valid Ticket is always present; otherwise, the connection to the database will be lost and an internal server error will be reported.
  • The Oracle database server may incorrectly interpret requests from SecureTransport as a replay attack ("Request is a replay" error message). This issue is resolved in Oracle 19.8 Patch 31716873. On previous Oracle database versions, the available workaround is to disable the Replay Cache mechanism.

Related Links