IBM Support

Resetting WPG HubAdmin Password

Troubleshooting


Problem

Methods to reset the Websphere Partner Gateway HubAdmin log on password back to its default value

Symptom

HubAdmin password is forgotten or lost

Resolving The Problem

There are 2 methods(Method A and B) to reset the 'HUBADMIN' password in WPG but method A is recommended.

Method A:

Step to reset 'HUBADMIN' password using bcgResetAuthentication.sh script, recommended method. (bcgResetAuthentication.bat script is used in Windows environments)

bcgResetAuthentication.sh script is available under wpg application

DBloader installed path

<installed PATH>/bcgappsdb/scripts/DB2/bcgResetAuthentication.sh

for example, /opt/IBM/bcgappsdb/scripts/DB2/bcgResetAuthentication.sh

Make sure DB2 instance owner has execute permission on script bcgResetAuthentication.sh

  1. Open a terminal and switch to db2 instance owner,
    su - <db2 instance owner>
    for example, su - db2inst1
  2. connect to wpg application database,
    db2 connect to <wpg application database>
    for example, db2 connect to bcgapps
  3. Execute the bcgResetAuthentication.sh from installed path using below command
    ./bcgResetAuthentication.sh <db2 instance owner name> <db2 instance owner password>
    for example, ./bcgResetAuthentication.sh db2inst1 db2inst1

Above steps will reset the 'HUBADMIN' password.

Method B:

Steps to reset 'HUBADMIN' password using db2 commands

  1. Open a terminal and switch to db2 instance owner,
    su - <db2 instance owner>
    for example, su - db2inst1
  2. connect to wpg application database,
    db2 connect to <wpg application database>
    for example, db2 connect to bcgapps
  3. execute the below mentioned commands
    db2 "UPDATE PR_USER SET PASSWORD =
    x'4DC515D55FA80E036EBA47924BD31378', PWDRESETFLG=1 WHERE UserName ='hubadmin'"

    db2 "UPDATE db_sysproperties set PROPVALUE = 'False' where PROPNAME
    ='bcg.ldap.containerauth'"

    db2 commit

Above commands will reset the 'HUBADMIN' password.

[{"Product":{"code":"SSDKKW","label":"WebSphere Partner Gateway Advanced Edition"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.2.0.3;6.2.0.2;6.2.0.1;6.2;6.1.1.2;6.1.1.1;6.1.1;6.1.0.3;6.1.0.2;6.1.0.1;6.1;6.2.0.4;6.2.0.5;6.2.1.0","Edition":"Advanced;Enterprise","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21470187