You might not want or be allowed because of corporate security policies to run with
Db2® authentication configured as
authentication=server. When you create a remote Db2 database or switch from the local Cloud
APM
Db2 database to a remote Db2 server, you can change to
authentication=server_encrypt to protect the user ID and password.
About this task
The authentication=server configuration is the
default authentication for the Cloud
APM
installation when the remote Db2 databases are
cataloged and when a Db2 database is created. The
procedure has you update theDb2 authentication
configuration to server_encrypt
and edit the
install.properties file that is in the Cloud
APM server installation package.
Procedure
Complete these steps on the remote Db2 server as the Db2 instance user (db2apm
is the instance
user in the commands):
-
Check the Db2 authentication
configuration:
-
db2 attach to db2apm
-
db2 get dbm cfg | grep AUTHENTICATION
The grep command prints Database manager authentication (AUTHENTICATION) = SERVER.
If, instead, you get Database manager authentication (AUTHENTICATION) =
SERVER_ENCRYPT, you can skip step 2.
-
db2 attach to db2apm
-
db2 detach
-
Change Db2 authentication to
server_encrypt:
-
db2 attach to db2apm
-
db2 update dbm cfg using authentication server_encrypt
-
db2 get dbm cfg | grep AUTHENTICATION
The grep command prints Database manager authentication (AUTHENTICATION) =
SERVER_ENCRYPT.
-
db2 attach to db2apm
-
db2 detach
Results
User authentication to the database server is now set to
server_encrypt
.