CPM - Cisco Router Plugin - How to Configure a Reconcile Account with TACACS Enabled
Symptom
When TACACS is enabled on a Cisco router, a reconcile may get the error: "Parameter 'extrapass3\Type' is mandatory but does not exist or has an empty value. Error code:7378"
Environment
12.6;12.7;13.0;13.2;13.1;14.0;13.3;14.2;14.3;14.4;13.4;13.5;14.1;14.5;14.6;13.6;13.7;15.0;14.7;14.8;15.2 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Central Policy Manager (CPM)
Cisco Router via SSH
Cause
Resolution
Here are the steps to associate a Windows based reconcile account to the target Cisco router local account:
1) Download and import the latest Cisco Router plugin: https://community.cyberark.com/marketplace/s/#a3550000000EiAUAA0-a3950000000jjSpAAI
2) Update TPC to the latest version available here: https://community.cyberark.com/marketplace/s/#a3550000000El8nAAC-a3950000000jju7AAA
3) Associate the target Cisco local account to the Cisco Router platform
4) Set "Enable TACACS Authentication=Yes" on the target Cisco local account
NOTE: "Enable TACACS Authentication=Yes" does NOT enable TACACS on the Cisco device. It only tells Idira that TACACS is enabled on the device. So, the customer enables TACACS on the device, and then we tell Idira it's enabled via "Enable TACACS Authentication=Yes".
5) Create the Enable Account for the Cisco device (use the "Cisco Router via SSH" platform) with "Cisco entity type"=CISCOENABLE and associate it to the target Cisco local account (Note: if the target Cisco local account already has enable rights, then this enable account is not needed)
6) Create the reconcile account which will be used to access the network device (you can create a dedicated user in Active Directory which will serve as the reconcile account for all the network devices we want to manage) - use the "Windows Domain Account" platform
7) Change the platform of the reconcile account we created in the previous step to "Cisco Router via SSH" - with this step we are adding the two missing file categories to the password object
8) Edit the reconcile account and add "Cisco entity type"=CISCOUSER and "Port"=22 (or 21) to the reconcile account
9) Change the reconcile account back to the "Windows Domain Account" platform - this step is mandatory so we will be able to manage the reconcile account by the CPM if necessary
10) Associate the reconcile account to the target Cisco local account
11) Edit the configuration file "CiscoProcess.ini" (located in the CPM's bin folder)
12) Find each of these three lines below in the process file and change <extrapass3\address> to <address> and <extrapass3\port> to <port>. This will pull the address and port from the target Cisco account and not from the Windows domain account:
ORIGINAL:
SetRecPassExt3=(script)set bTarget 0;set enable_pass "<pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<extrapass3\address>"; set login_port "<extrapass3\port>";
MODIFIED:
SetRecPassExt3=(script)set bTarget 0;set enable_pass "<pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<address>"; set login_port "<port>";
ORIGINAL:
GPHInitVerifyAfterRecCiscoUser=(script)set bVerifyRecPass 1;set bTarget 0;set enable_pass "<pmextrapass3\pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<extrapass3\address>"; set login_port "<extrapass3\port>";
MODIFIED:
GPHInitVerifyAfterRecCiscoUser=(script)set bVerifyRecPass 1;set bTarget 0;set enable_pass "<pmextrapass3\pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<address>"; set login_port "<port>";
ORIGINAL:
GPHSetRecAccountEnableFromExt3=(script)set bTarget 0;set enable_pass "<pmextrapass3\pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<extrapass3\address>"; set login_port "<extrapass3\port>";
MODIFIED:
GPHSetRecAccountEnableFromExt3=(script)set bTarget 0;set enable_pass "<pmextrapass3\pmextrapass1>";set login_pass "<pmextrapass3>"; set login_user "<extrapass3\username>"; set login_address "<address>"; set login_port "<port>";
Note: If the target Cisco local account already has enable rights when logging in, you may need to use this article:
https://community.cyberark.com/s/article/CPM-Cisco-accounts-fail-to-manage-with-error-message-Cannot-have-both-a-user-password-and-a-user-secret