Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How a Simple user in CLM connected via Federated Users in WAS can change his password by himself

There is an urgent need -- where a federated user of WAS connected to CLM, wants to change his password by himself.
I think in the current situation user connected to external registry (as for example in WAS) may not be able to change his own password .[[ Am I Right ? ]]  .

SO , is there any API for WAS which can be used to  Modify, Update old password . If so how it can be used ? Or some kind of Web Services which will expose only the User Id and Password for that user ?

Thanks & Regards

PKC

Prasanta Kumar Chaudhuri

2 votes

Comments

Dear Indradri Basu,

I have a client need for the same.
Can you share the script if you already have it.

- Chidambaram.



One answer

Permanent link
This seems possible but a little scripting is needed. If I have to do this quickly, I will probably take the following approach:

The first script will capture the unique name and the new password of the user who is/are willing to change his/her password. Then, it will call the second script (which can be stored in a location where users don't have access for security reasons) and pass the respective user's unique name and password as arguments.

The second script (can be written in jacl or jython) which will connect to WAS using wsadmin utility and administrative privilege and use the AdminTask object to update the user(s).

Below is a raw example which you can implement via a script.
## Using the wsadmin utility to connect to my App server with admin priviledge
1) wsadmin.bat/sh -lang jython -profileName AppSrv01 -username admin -password admin

## Updating the password for user "clmuser1"
2) AdminTask.updateUser('[-uniqueName uid=clmuser1,o=defaultWIMFileBasedRealm -password newPass -confirmPassword newPass ]')

You can try the above commands using a regular command prompt as well to test.
Hope this helps a bit.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,512
× 6,132

Question asked: Sep 04 '13, 2:27 a.m.

Question was seen: 6,675 times

Last updated: Nov 26 '13, 7:15 a.m.

Confirmation Cancel Confirm