TPC Plugin user.ini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

TPC Plugin user.ini

L2 Linker

Hi,

 

I have a problem with custom TPC configuration. I try to run a powershell script with TPC and I want to simulate it according to https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/11.2/en/Content/SDK/TPC-test-plugin.htm.

 

I have created a user.ini file like mentionned but it's not working. I still have the same error :

System.ArgumentException: Failed to initialize safe-folder-object properties from the CPM parameters file.

 

Thanks to cyberark error code, the corresponding description is completly useless :

Failed to initialize safe-folder-object properties from the CPM parameters file

Third party error code: -1

Recommended Action:

Fix the relevant tag(s) to the user.ini file.

 

What I am missing in my user.ini file ?

[targetaccount]

username=toto

newpassword=testnew

password=testold

safename=test

foldername=root

objectname=myaccounttest

PolicyID=CompteBasique

[extrainfo]

[extrapass1]

username=test

password=test

[extrapass3]

username=test

password=test

[extrainfo]

PlatformParameter=test

ProcessFilename=bin\customPSProcess.ini

PromptsFilename=bin\customPSPrompt.ini

 

Thanks in advance for your help.

2 REPLIES 2

L7 Applicator

You have 2 "[extrainfo]" sections.

L2 Linker

Thanks,

 

I've fixed that and a path problem : I must execute from root folder like :

CyberArk\Password Manager>.\bin\CyberArk.TPC.exe .\bin\user.ini changepass

 

 

My script works fine with simulated mode but password and newpassword work only if it placed on [extrainfo] section (not on targetAccount).

In the other hand, when it run by CPM I must use pmpass and pmnewpass parameters. Theses parameters doesn't work on simulated mode (in the user.ini).

 

What it the difference between password/newpassword and pmpass/pmnewpass. What is the correct way to use it ?

 

Thanks a lot.

  • 1062 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!