search cancel

What to do when you forget IAM admin user's password?

book

Article ID: 196033

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

There are situations when customers forget the IAM admin password and get stuck as they can't login to IAM as an admin user. This article explains how to get around such a situation.

Cause

 

DevTest Users for get their IAM admin password and can't login to IAM.

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

IAM comes with few command line options. DevTest install comes with a batch file which is handy for this specific situation.

add-user-iam.bat or add-user-iam.sh allows to create admin user from command prompt. The following example shows how to run this command to create a new user called "newadmin" by providing a password of your choice

C:\Program Files\CA\DevTest\IdentityAccessManager\bin>add-user-iam.bat -u newadmin
Press ctrl-d (Unix) or ctrl-z (Windows) to exit
Password:
Added 'newadmin' to 'C:\PROGRA~1\CA\DevTest\IDENTI~1\standalone\configuration\keycloak-add-user.json', restart server to load user
Press any key to continue . . .

Restart IAM Server and now you would be able to login to IAM as 'newadmin'. Once you login to IAM as newadmin, you would be able to reset the password of default 'admin' user

NOTE: If you get JAVA error when executing DevTes\IdentityAccessManager\bin>add-user-iam.bat -u newadmin, then you can execute it from C:\Program Files\CA\DevTest/jre/bin folder with the full path to C:\Program Files\CA\DevTest\IdentityAccessManager\bin>add-user-iam.bat -u newadmin

 

On Linux this example is for DevTest 10.6.0, but will work the same on other supported versions.

Follow these steps (the export is not permanent, just for this session)

1. [email protected]:/opt/CA/DevTest10.6.0/jre/bin# export JAVA_HOME=/opt/CA/DevTest10.6.0/jre

2. [email protected]:/opt/CA/DevTest10.6.0/jre/bin# export PATH=$JAVA_HOME:$PATH

3. [email protected]:/opt/CA/DevTest10.6.0/IdentityAccessManager/bin# ./add-user-iam.sh -u newadmin
Press ctrl-d (Unix) or ctrl-z (Windows) to exit
Password:
Added 'newadmin' to '/opt/CA/DevTest10.6.0/IdentityAccessManager/standalone/configuration/keycloak-add-user.json', restart server to load user

Additional Information