How To: Recover if the DMC Admin Password is Lost
You can reset the DMC password by following these steps.
Step 1:
Create a new Keycloak admin user from the command line.
Log in to your DMC server.
Run the following command, substituting the appropriate values for your system.
sudo -u <owner_of_DMC_software> /<path/to>/keycloak/bin/add-user-keycloak.sh --user <new_keycloak_user> --password <user_password> --realm master
Examplesudo -u datical /opt/datical/keycloak/bin/add-user-keycloak.sh --user rescue-admin --password mySecret --realm masterRestart the DMC services:
sudo datical-control service stop all #Ignore the error about the datical-postgresql.service. sudo datical-control start keycloak sudo datical-control start datical-service sudo datical-control start proxy
Step 2:
Log in to the Keycloak Admin Console as the user you just created. See https://dmc.datical.com/administer/administer.htm
Browse to https://<dmchostname>/auth
Select Administration Console
Log in with the new username/password created in Step 1.
Step 3:
Reset the password for the DMC Admin user. See https://dmc.datical.com/administer/create-password-keycloak.htm
In the Keycloak Admin console, select Users on the left pane.
Search for “View all uses” to find the Username support@datical.com.
Under the Actions column, click Edit.
Navigate to the Credentials tab.
Under the Actions column, click Delete.
When prompted, click Delete credentials.
Enter a new password and confirm.
Disable the temporary password setting.
Click Set Password.
Step 4:
Log out of Keycloak and log in to DMC as support@datical.com.
In the upper right corner of the Keycloak console, select the user dropdown and sign out.
Browse to https://<dmchostname>
Log in as support@datical.com
Copyright © Datical 2012-2020 - Proprietary and Confidential