Encrypting passwords

After you install Cloud Application Business Insights, you must run the AES_Encryptor.sh script to set and encrypt password for the default user, smadmin. For security reasons, you must also encrypt passwords of all the users that you create to access Dashboard Designer, Engine, and databases.

About this task

An administrator must encrypt all the passwords and save them in the following files:
  • All the user passwords must be saved in the $install_dir/wlp/usr/servers/prdauth/basic-registry.xml file.
Where, install_dir is the location where the Cloud Application Business Insights application is installed.

Procedure

Complete the following steps to set and encrypt a password for smadmin user:

  1. Go to the prdutil folder as follows:
    cd $install_dir/prdutil

    Where: install_dir is the directory where you installed the application.

  2. To set and encrypt a password for the default user, run the following script:
    ./AES_Encryptor.sh
    Please enter a string to encrypt and press [ENTER]: adminpassword

    Where, adminpassword is the password for smadmin user.

    After you type a password and press enter, an encrypted string is displayed.

    For example,

    {aes}AJgBvtFdTqE9j+va0P9peq4xfr1K//gVy4vhh13/sAYv

    Similarly, you can set and encrypt passwords of all the other users.

  3. You must copy this string to the basic-registry.xml file that is placed at the following location:

    $install_dir/wlp/usr/servers/prdauth/basic-registry.xml

    Where, install_dir is the location where the Cloud Application Business Insights application is installed.

  4. Add the default username and its encrypted password string within the <basicRegistry> element as follows:
    
    <basicRegistry id="basic" realm="admin">
          <user name="smadmin" password="{aes}AJgBvtFdTqE9j+va0P9peq4xfr1K//gVy4vhh13/sAYv"/>
    </basicRegistry>
    Similarly, for all the other users, you must copy and paste encrypted password in the $install_dir/wlp/usr/servers/prdauth/basic-registry.xml file.
  5. Save the basic-registry.xml file.