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

How can Admin change a user password

Admin is able to reset the user password and send the new password to the user by email. But when having email disabled, how to reset then password then?

Thanks for your help
Frank.

0 votes


Accepted answer

Permanent link
Looks like the xml was not shown in the forum. Let me try again.

The password info in tomcat-users.xml will be encrypted. The format of tomcat-users.xml is

<xml>

<tomcat>
<role>
<role>
<role>
<role>
<role>
<user>
<user>
</tomcat>

Since the password field is encrypted, you should not edit the tomcat-users.xml with the new password. Instead, do the following to change the password. Lets say for example, you wish to reset the password for user1. create a new tomcat-users.xml file with user1 information,

<xml>

<tomcat>
<role>
<role>
<role>
<role>
<role>
<user>
</tomcat>

and use repotools -convertTomcatUsers command to convert the new tomcat-users.xml file you created. The output tomcat-users.xml file would encrypt the password value. Copy that password value and paste it in the orifinal tomcat-users.xml.

Restarting the server will pick up the new password.

--- Balaji
Frank Schophuizen selected this answer as the correct answer

0 votes


6 other answers

Permanent link
Looks like the xml was not shown in the forum. Let me try again.

The password info in tomcat-users.xml will be encrypted. The format of tomcat-users.xml is

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>
<role rolename="JazzDWAdmins"/>
<role rolename="JazzGuests"/>
<role rolename="manager"/>
<role rolename="JazzUsers"/>
<role rolename="JazzAdmins"/>
<user username="ADMIN" password="b521caa6e1db8" roles="JazzUsers,JazzAdmins,manager"/>
<user username="User1" password="cvhjdfhdjhfdjhfdjhfdfd123" roles="JazzUsers"/>
</tomcat-users>

Since the password field is encrypted, you should not edit the tomcat-users.xml with the new password. Instead, do the following to change the password. Lets say for example, you wish to reset the password for user1. create a new tomcat-users.xml file with user1 information,

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>
<role rolename="JazzDWAdmins"/>
<role rolename="JazzGuests"/>
<role rolename="manager"/>
<role rolename="JazzUsers"/>
<role rolename="JazzAdmins"/>
<user username="User1" password="initpass" roles="JazzUsers"/>
</tomcat-users>

and use repotools -convertTomcatUsers command to convert the new tomcat-users.xml file you created. The output tomcat-users.xml file would encrypt the password value. Copy that password value and paste it in the orifinal tomcat-users.xml.

Restarting the server will pick up the new password.

--- Balaji

1 vote


Permanent link
Anyone any ideas how Admin can reset the password if notifications are disabled.

Frank.

0 votes


Permanent link
Short of messing around with the database, this looks like an enhancement request. :(

ciao!

0 votes


Permanent link
Assuming you are using Tomcat, you can shutdown the server, and hand
edit the tomcat-users.xml file in the tomcat/conf directory. I'm not
exactly sure about the format, but I think there is some documentation
on the Tomcat website.

-
Matt Lavin
Jazz Server Team


On Thu, 2009-02-05 at 06:37 +0000, ramfree17 wrote:
Short of messing around with the database, this looks like an
enhancement request. :(

ciao!

0 votes


Permanent link
The password info in tomcat-users.xml will be encrypted. The format of tomcat-users.xml is

<xml>
<tomcat>
<role>
<role>
<role>
<role>
<role>
<user>
<user>
</tomcat>

Since the password field is encrypted, you should not edit the tomcat-users.xml with the new password. Instead, do the following to change the password. Lets say for example, you wish to reset the password for user1. create a new tomcat-users.xml file with user1 information,

<xml>
<tomcat>
<role>
<role>
<role>
<role>
<role>
<user>
</tomcat>

and use repotools -convertTomcatUsers command to convert the new tomcat-users.xml file you created. The output tomcat-users.xml file would encrypt the password value. Copy that password value and paste it in the orifinal tomcat-users.xml.

Restarting the server will pick up the new password.

--- Balaji


Assuming you are using Tomcat, you can shutdown the server, and hand
edit the tomcat-users.xml file in the tomcat/conf directory. I'm not
exactly sure about the format, but I think there is some documentation
on the Tomcat website.

-
Matt Lavin
Jazz Server Team


On Thu, 2009-02-05 at 06:37 +0000, ramfree17 wrote:
Short of messing around with the database, this looks like an
enhancement request. :(

ciao!

0 votes


Permanent link
Thanks for the workaround.
Wouldn't is be much easier to extend the admin UI to set the password?

Frank.

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

Question asked: Feb 01 '09, 2:20 a.m.

Question was seen: 7,199 times

Last updated: Feb 01 '09, 2:20 a.m.

Confirmation Cancel Confirm