How can Admin change a user password
Admin is able to
Thanks for your help Frank. |
Accepted answer
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> 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> 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
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'?> 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'?> 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 |
Anyone any ideas how Admin can reset the password if notifications are disabled.
Frank. |
Short of messing around with the database, this looks like an enhancement request. :(
ciao! |
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 |
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 Short of messing around with the database, this looks like an |
Thanks for the workaround.
Wouldn't is be much easier to extend the admin UI to set the password? Frank. |
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.