IBM Support

How to add to add users in resources Realm defaultWIMFileBasedRealm via a command line

How To


Summary

In this technote presents a step-by-step guide to add users in Realm defaultWIMFileBasedRealm via a command line which saves the details in fileRegistry.xml.

Objective

The purpose of this technote is to provide the ability to add users in in Realm defaultWIMFileBasedRealm without interrupting the LDAP Realm configured in JazzSM DASH.

Steps

(1) Backup /opt/IBM/JazzSM/profile/config/cells/JazzSMNode01Cell/fileRegistry.xml
(2) Use the command wsadmin.sh from /opt/IBM/JazzSM/profile/bin
(3) Add the user AdminTask.addFileRegistryAccount('-userId <user> -password <password>')
(4) Save by executing AdminConfig.save(). 
Example:


 


[root@dash151 bin]# /opt/IBM/JazzSM/profile/bin/wsadmin.sh -lang jython -user smadmin -password smadmin

WASX7209I: Connected to process "server1" on node JazzSMNode01 using SOAP connector; The type of process is: UnManagedProcess

WASX7031I: For help, enter: "print Help.help()"



wsadmin>AdminTask.addFileRegistryAccount('-userId shaz -password shaz')

'CWWIM4544I Account shaz(uid=shaz,o=defaultWIMFileBasedRealm) is stored in the file registry in the temporary workspace. You must use the "$AdminConfig save" command to save it in the master repository.'

wsadmin>AdminConfig.save()

''

wsadmin>exit
(5) Restart server1.
/opt/IBM/JazzSM/profile/bin/stopServer.sh server1
/opt/IBM/JazzSM/profile/bin/startServer.sh server1
(6) Verify by checking fileRegistry.xml
(7) Verify in WAS console > Users & Groups > Manager Users

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEKCU","label":"Jazz for Service Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"1.1.3.0;1.1.3.x","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
25 December 2019

UID

ibm11163746