AAM - How can I create or update the credential files (credfile) for the provider manually? (12.0 or below ONLY)
Question
How can I reset the credential files (credfile) for the provider manually?
Environment
10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0
Answer
IMPORTANT NOTE: The credfile process has changed in version 12.1. If you are on version 12.1 or higher, please use directions from this article instead. DO NOT use this article.
To determine your version, run the following command. The following output indicates version 12.1 or higher:
Versions under 12.1 print the following with a version below 12.1:
For version 12.0 or below
Windows:
1. Open the services console and stop the CyberArk Application Password Provider service
2. Logon to the PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
3. Go to Menu “Tools-Administrative Tools-Users and Groups”
4. Select your provider user and click “Update”. (Note: Make sure you select the right provider user. You can find the correct provider user by checking the text of the credfile in step 7.)
5. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”. Write down or remember the password as it will be used in a later step.
6. Click "Trusted Net Areas" button and make sure "State" is set to "Active". If it is set to "Inactive" click "Activate" to change the state to active.
7. In an administrative level command prompt, browse to <Drive>:\Program Files (x86)\CyberArk\ApplicationPasswordProvider\Vault\
8. Type 'createcredfile.exe appprovideruser.cred' and fill out the following information:
9. Restart the provider service
-------
Unix:
1. Stop the provider with the following command:
/etc/init.d/aimprv stop
2. On another machine with access, Logon to the PrivateArk Client as “Administrator” or any other user with “Manage Users” privileges in the root location.
3. Go to Menu “Tools-Administrative Tools-Users and Groups”
4. Select your provider user and click “Update”. (Note: Make sure you select the right provider user. You can find the correct provider user by checking the text of the credfile in step 7.)
5. In the “Authentication Tab” specify a new, random password in the “Password” field, repeat it and click “OK”. Write down or remember the password as it will be used in a later step.
6. Click "Trusted Net Areas" button and make sure "State" is set to "Active". If it is set to "Inactive" click "Activate" to change the state to active.
7. CD to /opt/CARKaim/bin, then type the following:
Createcredfile appprovideruser.cred
8. Fill out the following:
createcredfile appprovideruser.cred Vault Username [mandatory] ==> <your provider username> Vault Password (will be encrypted in credential file) ==> <your password> Disable wait for DR synchronization before allowing password change (yes/no) [No] ==> hit enter External Authentication Facility (LDAP/Radius/No) [No] ==> hit enter Restrict to Application Type [optional] ==> hit enter Restrict to Executable Path [optional] ==> hit enter Restrict to current machine IP (yes/no) [No] ==> hit enter Restrict to current machine hostname (yes/no) [No] ==> hit enter Restrict to OS User name [optional] ==> hit enter Display Restrictions in output file (yes/no) [No] ==> hit enter Use Operating System Protected Storage for credentials file secret (Machine/User/No) [No] ==> hit enter Command ended successfully
9. Start the provider with the following command:
/etc/init.d/aimprv start
/etc/init.d/aimprv start