The Batch Processor EXIT01 (the .AUTH command) uses IBM System Authorization Facility (SAF) based security administration for authorization.
SAF provides an interface that can direct control to all external security products (ACF2, Top Secret, and IBM RACF).
In Database Management for Db2 for z/OS tools r20 the EXITS are in CDBASAMP and called BPAEXIT1, BPAEXIT2 etc.
When a connection request is received, DB2 obtains the initial primary authorization ID, and the external security product is called through
SAF to verify that the ID is authorized to use the defined DB2 resource class, subsystem, and connection type.
Following are examples of statements in ACF2, RACF and Top Secret to define the CADB2 resource and permit .AUTH usage.
Instructions:
Note: These are SAMPLES of security statements to assist in the SAF security setup to allow the .AUTH command.
Please consult with your security administrator for details specific to your site.
RACF:
====
RDEF CADB2 CONNECT.AUTH.userxxxx UACC(NONE) OWNER(SECURITY)
RALT CADB2 CONNECT.AUTH.userxxxx AUDIT(FAILURES(READ))
SETROPTS RACLIST(CDT) REFRESH
SETROPTS CLASSACT(CADB2) RACLIST(CADB2)
SETROPTS RACLIST(CADB2) GENERIC(SERVER) REFRESH
PE CONNECT.AUTH.* CLASS(CADB2) ID(userxxxx) ACCESS(READ) - userxxxx has permit to switch to any id
SETROPTS RACLIST(CADB2) GENERIC(SERVER) REFRESH
userxxxx = the user ID being permitted
user2 = example ID to be switched to
Top Secret:
========
ACF2:
======
Please review the documentation: Sample Security Exits