Local Authenticated users can follow one of the two steps given below to reset the password:
For OpManager version below 123190, Follow the below steps to reset admin password
1. Open a command prompt
2. Go to the <OpManager_HOME>\pgsql\bin directory
3. Type
For Windows : psql -U postgres -p 13306 -h 127.0.0.1 -d OpManagerDB
For Linux : ./psql -U postgres -p 13306 -h 127.0.0.1 -d OpManagerDB
Please execute the below query :
select name,apikey from ApiKeyToUserMap inner join AAALogin on AAALogin.USER_ID=ApiKeyToUserMap.APIKEYID inner join ApiKey on ApiKey.APIKEYID=ApiKeyToUserMap.APIKEYID where name='admin';
4 . Copy the API Key from the output of the query.
5. Install the Google chrome Postman add-on.
6. Open a Google chrome browser and open Postman add-on and execute the below API command in POST method to reset the password.
For Example:
http://localhost:8080/api/json/nfaadmin/changePassword?apiKey=34b77304c502174eaf8b70b034254071&newPwd=admin&userName=admin
Localhost - Opmanager server IP:webserverport
API key - Copied from the command output
New Password- new password for admin user