对密码进行加密

安装 Cloud Application Business Insights后,必须运行 AES_Encryptor.sh 脚本以设置和加密缺省用户 smadmin的密码。 出于安全原因,还必须对您创建的用于访问 Dashboard DesignerEngine和数据库的所有用户的密码进行加密。

关于此任务

管理员必须对所有密码进行加密,并将其保存在以下文件中:
  • 所有用户密码必须保存在 $install_dir/wlp/usr/servers/prdauth/basic-registry.xml 文件中。
其中, install_dirCloud Application Business Insights 应用程序的安装位置。

程序

执行下列步骤为 smadmin 用户设置密码,并对密码进行加密:

  1. 转至 prdutil 文件夹,如下所示:
    cd $install_dir/prdutil

    其中,install_dir 是安装该应用程序所在的目录。

  2. 要设置并加密缺省用户的密码,请运行以下脚本:
    ./AES_Encryptor.sh
    Please enter a string to encrypt and press [ENTER]: adminpassword

    其中,adminpasswordsmadmin 用户的密码。

    输入密码并按 Enter 键之后,将显示一个已加密的字符串。

    例如

    {aes}AJgBvtFdTqE9j+va0P9peq4xfr1K//gVy4vhh13/sAYv

    您可以按类似方式为所有其他用户设置密码并对密码进行加密。

  3. 必须将此字符串复制到放置在以下位置的 basic-registry.xml 文件中:

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

    其中, install_dirCloud Application Business Insights 应用程序的安装位置。

  4. <basicRegistry> 元素中添加 default 用户名及其加密密码字符串,如下所示:
    
    <basicRegistry id="basic" realm="admin">
          <user name="smadmin" password="{aes}AJgBvtFdTqE9j+va0P9peq4xfr1K//gVy4vhh13/sAYv"/>
    </basicRegistry>
    同样,对于所有其他用户,必须在 $install_dir/wlp/usr/servers/prdauth/basic-registry.xml 文件中复制并粘贴加密密码。
  5. 保存 basic-registry.xml 文件。