Use > JMX Reference > Hardening Methods > How to Modify the PostgreSQL Database Encrypted Password

How to Modify the PostgreSQL Database Encrypted Password

This section explains how to modify the encrypted password for the PostgreSQL database user.

  1. Create the Encrypted Form of a Password (AES, 192-bit key)

    Note: In FIPS mode, it is 256-bit key.
    1. Access the Data Flow Probe JMX console. On the probe machine, launch a Web browser and enter the following address: https://localhost:8453.

      You may have to log in with a user name and password.

      Note If you have not created a user, use the default user name sysadmin and the password to log in.

    2. Locate the Type=MainProbe service and click the link to open the Operations page.

    3. Locate the getEncryptedDBPassword operation.

    4. In the DB Password field, enter the password to be encrypted.

    5. Invoke the operation by clicking the getEncryptedDBPassword button.

      The result of the invocation is an encrypted password string, for example:


  2. Stop the Data Flow Probe

    Start > All Programs > UCMDB > Stop Data Flow Probe

  3. Run the set_dbuser_password.cmd Script

    This script is located in the following folder: C:\UCMDB\DataFlowProbe\tools\dbscripts\set_dbuser_password.cmd

    Run the set_dbuser_password.cmd script with the new password as the first argument,and the PostgreSQL Root Account password as the second argument.

    For example:

    set_dbuser_password <my_password><root_password>.

    The password must be entered in its unencrypted form (as plain text).

  4. Update the Password in the Data Flow Probe Configuration Files

    1. The password must reside encrypted in the configuration files. To retrieve the password's encrypted form, use the getEncryptedDBPassword JMX method, as explained in step 1.

    2. Add the encrypted password to the following properties in the C:\UCMDB\DataFlowProbe\conf\ file.

      • appilog.agent.probe.jdbc.pwd

        For example:

        appilog.agent.probe.jdbc.user = mamprobe
        appilog.agent.probe.jdbc.pwd =
      • appilog.agent.local.jdbc.pwd

      • appilog.agent.normalization.jdbc.pwd

  5. Start the Data Flow Probe

    Start > All Programs > UCMDB > Start Data Flow Probe