News
Abstract
This page describes simplified DDM and DRDA authentication entry management using group profiles.
Content
You are in: IBM i Technology Updates > Db2 for i - Technology Updates > Db2 for i Security Enhancements > Simplified DDM and DRDA authentication entry management using group profiles
The Add Server Authentication Entry (ADDSVRAUTE) command adds authentication information that is used when application requesters attempt to connect to application servers through DDM (Distributed Data Management) or DRDA (Distributed Relational Database Architecture).
Before this enhancement, when server authentication entries were used to access an application server that required a user ID and password, one server authentication entry was needed for every user on the system who required access. This enhancement allows DDM and DRDA to use a common user ID and password that are defined in a server authentication entry under a group profile name or supplemental group profile name. The group profile name or supplemental group profile name is specified on the USRPRF parameter of the ADDSVRAUTE command.
System administration of server authentication entries becomes much simpler when a group profile is used. A common user ID and password are used when a DDM or DRDA connection is established through a group profile. Remote connection capability is managed by controlling the users who belong to the group and their authority to the group profile.
Note: An alternative server authentication entry order was added with IBM i 7.1 TR8. See Alternative server authentication entry order at the end of this page.
Example:
CRTUSRPRF USRPRF(TESTTEAM) PASSWORD(*NONE)
CRTUSRPRF USRPRF(JIM) PASSWORD(yourpasswordA) GRPPRF(TESTTEAM)
ADDSVRAUTE USRPRF(TESTTEAM) SERVER(QDDMDRDASERVER or <RDB-name>) USRID(youruseridB) PASSWORD(yourpasswordB)
Sign on to <system-A> with Jim's user profile, and then run the following commands:
STRSQL
CONNECT TO <system-B>
In this example, <system-B> is defined in the relational database directory entries; see the Work with Relational Database Directory Entries (WRKRDBDIRE) command. A connection is attempted to <system-B> with user ID = youruseridB and password = yourpasswordB.
Usage notes: A user ID authentication entry takes precedence over a group profile authentication entry, as shown in the following order.
DDM and DRDA server authentication entry checking occurs in the following order. The connection is attempted with the settings of the first match that is found.
- Search for authentication entries where USRPRF=user profile and SERVER=application server name.
- Search for authentication entries where USRPRF=user profile and SERVER='QDDMDRDASERVER'.
- Search for authentication entries where USRPRF=group profile and SERVER=application server name.
- Search for authentication entries where USRPRF=group profile and SERVER='QDDMDRDASERVER'.
- Search for authentication entries where USRPRF=supplemental group profile and SERVER=application server name.
- Search for authentication entries where USRPRF=supplemental group profile and SERVER='QDDMDRDASERVER'.
- If no entry is found in the previous steps, a USERID-only authentication attempt is used.
See this page for details on the QDDMDRDASERVER special value.
Authorization requirement: To use the ADDSVRAUTE command, you must have the following authorities:
- Security administrator (*SECADM) user special authority
- Object management (*OBJMGT) user special authority
Note: With Db2 PTF Group (6.1) SF99601 Level 29 and (7.1) SF99701 Level 21, the GRTOBJAUT step to grant *USE authority, so that group members can use the group profile server authentication entry, is no longer necessary, so that information has been removed from this page.
DRDA explicit server name priority when group profile server authentication entries are used
Note: This support was added in the IBM i 7.1 TR8 time frame through Db2 PTF Group SF99701 Level 29.
- When the default authentication entry search order that is explained above is used, the search stops at connect time if a match is found for QDDMDRDASERVER.
- The QIBM_DDMDRDA_SVRNAM_PRIORITY environment variable determines whether an explicit server name order is favored when authentication entries are searched for:
- USRPRF=user profile and SERVER=application server name
- USRPRF=group profile and SERVER=application server name
- USRPRF=supplemental group profile and SERVER=application server name
- USRPRF=user profile and SERVER='QDDMDRDASERVER'
- USRPRF=group profile and SERVER='QDDMDRDASERVER'
- USRPRF=supplemental group profile and SERVER='QDDMDRDASERVER'
- If no entry is found in the previous steps, a USERID-only authentication attempt is used.
Example 1. Create the environment variable
ADDENVVAR ENVVAR(QIBM_DDMDRDA_SVRNAM_PRIORITY) VALUE('Y') LEVEL(*JOB or *SYS)
Was this topic helpful?
Document Information
Modified date:
27 November 2026
UID
ibm11172482