Welcome, Guest Login

Rundeck Enterprise Support Center

Encrypting password in tomcat-users.xml

Last Updated: Feb 08, 2016 09:52AM PST
Pick an algorithm as value (possible values are for example md5, sha-1 or sha-256)
  1. Add "digest" attribute on your <Realm> element in server.xml with value (eg sha-1). 
    1.   <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                     resourceName="UserDatabase" digest="sha-1" />
  2. Run $CATALINE_HOME/bin/digest.sh -a <YOUR_HASH_ALGORITHM> <YOUR_PASSWORD> will output <YOUR_PASSWORD>:<ENCRYPTED_PASSWORD>
    1. Windows: digest.bat -a "sha-1" admin
    2. Outputs: admin:d033e22ae348aeb5660fc2140aec35850c4da997
  3. Replace value of user's password attribute in your tomcat-users.xml to <ENCRYPTED_PASSWORD>
    1. <tomcat-users>
        <role rolename="user"/>
        <role rolename="admin"/>
        <user username="admin" password="admin:d033e22ae348aeb5660fc2140aec35850c4da997" roles="user,admin"/>
      </tomcat-users>
  4. Restart Tomcat service

Also see this post for an example.
 
1fb43f9155a47800b95738aff7e657fc@rundeck.desk-mail.com
http://assets3.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete