Changing passwords

Applies to: On premises

You can change the passwords of the installation app user accounts.

About this task

You change passwords by editing the <install_server_home>/src/db/jsonDB.json file.

Create a backup of the jsonDB.json file before you begin.

When you save the file and restart the installation server, the passwords in the file are encrypted.

Procedure

  1. Log out of the OpenPages® installation app.
  2. Stop the installation server.
    For more information, see Stopping the installation server.
  3. Open the <install_server_home>/src/db/jsonDB.json file in a text editor.
  4. Locate the user whose password you want to change, for example admin2.
    {
      "token": [],
      "user": [
        {
          "name": "admin",
          "password": "{AES}QiTCrj1RuBgvLvKHm32JoQ==",
          "id": "101",
          "encrypted": true
        },
        {
          "name": "admin2",
          "password": "{AES}QiTCrj1RuBgvLvKHm32JoQ==",
          "id": "102",
          "encrypted": true
        },
        {
          "name": "admin3",
          "password": "{AES}IAHJQUu_MiqdcX2LtugZcA==",
          "id": "103",
          "encrypted": true
        }
      ]
    }
  5. Delete the encrypted password and then type a new password.
  6. Delete the comma after the id value.
  7. Delete the "encrypted": true line.
    The result is:
    {
      "token": [],
      "user": [
        {
          "name": "admin",
          "password": "{AES}QiTCrj1RuBgvLvKHm32JoQ==",
          "id": "101",
          "encrypted": true
        },
        {
          "name": "admin2",
          "password": "<new_password>",
          "id": "102"
        },
        {
          "name": "admin3",
          "password": "{AES}IAHJQUu_MiqdcX2LtugZcA==",
          "id": "103",
          "encrypted": true
        }
      ]
    }
  8. Save the file and close it.
  9. Start the installation server.
    Windows
    Do one of the following steps:
    • Start the ibmopenpagesinstaller<version>.exe service.
    • Go to the <installation_server_home> directory. For example C:\IBM\OPInstall\OP_<version>_Installer. Right-click the startup.bat file and click Run As Administrator.
      Note: If you do not see the startup.bat script, you can also find it and run it from the <installation_server_home>\install\Windows directory.
    Linux®
    1. Open a shell and go to the <installation_server_home> directory, for example /home/opuser/IBM/OPInstall/OP_<version>_Installer.
    2. Run the following command:
      ./startup.sh
      Note: If you do not see the startup.sh script, you can also find it and run it from the <installation_server_home>/install/Linux directory.

Results

The passwords are changed and they are encrypted in the jsonDB.json file.