CPM - Cisco Router Plugin - How to Configure a Reconcile Account with TACACS Enabled

CPM - Cisco Router Plugin - How to Configure a Reconcile Account with TACACS Enabled

82
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:50 PM


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


By default, managing Cisco router/switch accounts is done by using the local administrator account on the router/switch.  However, when there is a RADIUS configuration present and active (TACACS is enabled on the Cisco device), the local user is automatically DISABLED on the device and the management is done by the external (Radius) user.  If network issues are present between the network device and the TACACS server, the local Cisco user is RE-ENABLED for management/maintenance.
 
When TACACS is enabled on the Cisco device, this disables the local Cisco user from being able to login.  When "Enable TACACS Authentication=Yes" on the account, even with a Logon account, Verify and Change will both fail.  Only Reconcile should be used.  
Verify will fail with this error: 
"Verify action failed - Make sure you use TACACS account. Local Cisco accounts cannot be verified when TACACS Authentication is ON RC: 8020"
Change will fail with this error:
"Change action failed - Passwords cannot be changed via Cisco platform when TACACAS Authentication is ON. Please use TACACS platform. Error code:8022"  
 
By default, configuration settings for the CPM are designed to work with the Cisco local user and not an external entity.  Once we associate a "reconcile account" different than the Cisco platform, the CPM doesn't know how to address it according to its configuration files (CiscoPrompts, CiscoProcess).  The reconcile account is missing two file categories that are mandatory in order to access the network device: Cisco entity type and Port.


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



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000km2CAA&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail