ADDSVRAUTE (Add Server Authentication Entry)
ADDSVRAUTE Command syntax diagram
Purpose
The Add Server Authentication Entry (ADDSVRAUTE) command adds server authentication information for use by application requesters in connecting to application servers.
When using the ADDSVRAUTE command to add a server authorization entry for a Distributed Relational Database Architecture (DRDA) application that uses TCP/IP, make sure that the server name is entered in upper case.
Restriction: You must have *SECADM special authority, and *OBJMGT and *USE authorities to the user profile to which the server authentication entry is being added, or else be signed on under that user profile, to run this command.
Required Parameters
- USRPRF
- Specifies the user profile for which the server authentication entry will be added.
*CURRENT: Specifies that the server authentication entry will be added for the current user.
user-profile-name: Specify the name of the user for which to add the server authentication entry.
- SERVER
- Specifies the name of the application server for which the entry is being added.
'server-name': Specify the name for the particular application server for which the entry is being added. Specify no more than 200 characters.
Optional Parameters
- USRID
- Specifies the user name for which requests will be made to the application server.
*USRPRF: Specifies that the name specified in the user profile parameter will be the user ID specified on connection requests to the server.
'user-name': Specify the user ID to be used on connection requests. Specify no more than 1000 characters.
- PASSWORD
- Specifies the password to be used to authenticate the user when the client attempts to connect to the server.
Note: If the retain server security data (QRETSVRSEC) system value is set to 0 (do not retain data), then the password will not be saved in the entry. *NONE: Specifies there is to be no password supplied on the connect request.
'password': Specify the password associated with the user ID. Specify no more than 696 characters.
Examples for ADDSVRAUTE
Example 1: Adding a default remote user ID and password for the current user
ADDSVRAUTE USRPRF(*CURRENT) SERVER(*ANY) USRID('JOHN') PASSWORD('XU53W4')This command adds a server authentication entry for the currently signed on user specifying that for connection requests to any server for which there is no specific authentication entry, a remote user ID of JOHN and a password of XU53W4 is to be used.
Example 2: Adding an entry for another user for a specific server
ADDSVRAUTE USRPRF('SUSAN') SERVER('MPLS_RDB') USRID('SUSIE') PASSWORD('S23084')This command adds an entry such that when a user is signed on to the local system under the user profile of SUSAN and attempts to connect to the server named MPLS_RDB, the user ID and password accompanying the connection request will be SUSIE and S23084.
Error messages for ADDSVRAUTE
*ESCAPE Messages
- CPF2204
- User profile &1 not found.
- CPF2213
- Not able to allocate user profile &1.
- CPF2222
- Storage limit is greater than specified for user profile &1.
- CPF224F
- Server authentication entry already exists.
- CPF225F
- Not all information stored.
- CPF226C
- Not authorized to perform function.