Defining trusted contexts

Before you can create a trusted connection, you must define a trusted context by using a system authorization ID and connection trust attributes.

About this task

A system authorization ID is the Db2 primary authorization ID that is used to establish the trusted connection. For local connections, the system authorization ID is derived as shown in the following table.

Table 1. System authorization ID for local connections
Source System authorization ID
Started task (RRSAF) USER parameter on JOB statement or RACF® USER
TSO TSO logon ID
BATCH USER parameter on JOB statement

For remote connections, the system authorization ID is derived from the system user ID that is provided by an external entity, such as a middleware server.

The connection trust attributes identify a set of characteristics about the specific connection. The connection trust attributes are required for the connection to be considered a trusted connection. For a local connection, the connection trust attribute is the job or started task name. For a remote connection, the connection trust attribute is the client's IP address, domain name, or SERVAUTH security zone name. The connection trust attributes are as follows:

ADDRESS
Specifies the client's IP address or domain name, used by the connection to communicate with Db2. The protocol must be TCP/IP.
SERVAUTH
Specifies the name of a resource in the RACF SERVAUTH class. This resource is the network access security zone name that contains the IP address of the connection to communicate with Db2.
ENCRYPTION
Specifies the minimum level of encryption of the data stream (network encryption) for the connection. Supported values are as follows:
  • NONE - No encryption. This is the default.
  • LOW - DRDA data stream encryption.
  • HIGH - Secure Socket Layer (SSL) encryption.
JOBNAME
Specifies the local z/OS® started task or job name. The value of JOBNAME depends on the source of the address space, as shown in the following table.
Table 2. JOBNAME for local connections
Source JOBNAME
Started task (RRSAF) Job or started task name
TSO TSO logon ID
BATCH Job name on JOB statement
The JOBNAME attribute cannot be specified with the ADDRESS, SERVAUTH, or ENCRYPTION attributes.