It's all about the answers!

Ask a question

How can Admin change a user password


Frank Schophuizen (19323226) | asked Feb 01 '09, 2:20 a.m.
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.

Accepted answer


permanent link
Balaji Krish (1.8k12) | answered Feb 06 '09, 5:08 p.m.
JAZZ DEVELOPER
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

6 other answers



permanent link
Balaji Krish (1.8k12) | answered Feb 06 '09, 5:10 p.m.
JAZZ DEVELOPER
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

permanent link
Frank Schophuizen (19323226) | answered Feb 05 '09, 1:18 a.m.
Anyone any ideas how Admin can reset the password if notifications are disabled.

Frank.

permanent link
Anuerin Diaz (4112517) | answered Feb 05 '09, 1:32 a.m.
Short of messing around with the database, this looks like an enhancement request. :(

ciao!

permanent link
Matt Lavin (2.7k2) | answered Feb 05 '09, 8:48 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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!

permanent link
Balaji Krish (1.8k12) | answered Feb 06 '09, 5:05 p.m.
JAZZ DEVELOPER
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!

permanent link
Frank Schophuizen (19323226) | answered Feb 07 '09, 5:38 a.m.
Thanks for the workaround.
Wouldn't is be much easier to extend the admin UI to set the password?

Frank.

Your answer


Register or 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.