Configure the db2auth_key.txt
This is the file that the plug-in gathers information about where to get the authorization data from.
It also gets group name to set SYSADM to, as well as the user name (and password in some cases) of the administrator.
Steps:
- Make a copy of the db2auth_key.txt.empty file, and rename it as db2auth_key.txt.
- Open the db2auth_key.txt file.
You should see two sample configuration lines:
# Sample showing connection to local authentication database
# localDB db2admns db2admin
# Sample showing connection to remote authentication database
# remoteDB db2admns db2admin db2adminpw
This configuration follows the format:
[name of (remote or local) db to store authorization info] [SYSADM admin group name] [admin user ID] ([admin password (only for remote db)])
- Copy the appropriate sample line, and replace it with names of your choice (and without the # sign). The admin user ID should be the name with the necessary authorization, as verified in step three.
- IMPORTANT: Fill the password parameter only if the database where the authorization information is stored is not local to the instance that you are configuring the plug-in for. In that case, the file should be configured so that only the DB2 instance owner can access the file.