Set new shared secret

Set new shared secret

Use this procedure if you have forgotten the Application Studio shared secret that was set during installation. The following procedure replaces the current shared secret with a new one. Application Studio uses the shared secret as a key for encrypting and decrypting passwords. Changing the shared secret requires the follow-up task of changing all passwords.

Stop Application Studio. Run the following command and enter a new shared secret when prompted.

<install directory>/cli-tools/recover.sh shared_secret

Replacing the shared secret invalidates passwords of all users, including the default admin user. You need to reset the admin user's initial password to the factory default value axway. This enables the admin user to log on and change passwords of all other users. In the following step 6a5b301829a83d56073ba6b33ee3dda6 is the encrypted value of axway.

Connect to the database using an SQL client and run following commands for your database type to reset the admin password to the axway default.

MySQL

UPDATE dir_user SET password='6a5b301829a83d56073ba6b33ee3dda6', active=1 WHERE username='admin';

UPDATE dir_user_extra SET algorithm='', requiredPasswordChange = true WHERE username='admin';

Oracle

UPDATE dir_user SET password='6a5b301829a83d56073ba6b33ee3dda6', active=1 WHERE username='admin';

UPDATE dir_user_extra SET algorithm='', requiredPasswordChange = 1 WHERE username='admin';

Then run the following command to rehash the database password.

<install directory>/cli-tools/repair.sh datasource

Caution   This erases all customization in the datasource file (for example, Oracle RAC, SLL).

Start Application Studio, log on as the admin user and reset the password when prompted. Now the admin user must reset passwords of all users and passwords for all plugins and form fields.

Related topics

Password policy and global SMTP settings

User-level password policy settings

LDAP user authentication

Certificate management tools

Repair database connection

Enable HSTS