custom connector using AUTOIT

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

custom connector using AUTOIT

L3 Networker

Hello Experts,

 

Need your help to setup custom connector using AUTOIT . Requirement is to connect to a target machine using custom connector (AUTOIT). i am not aware how to use AUTOIT script . Or is there any alternative available to achieve the custom connector , if not AUTOIT

1 accepted solution

Accepted Solutions

L4 Transporter

You can use any script but AutoIT most easy one for automation of client. You need to perform following pre-req

   

  •     You need to install the app which we will be managing
  • ·   we have to install AutoIt. You use the full installation of AutoIt. - On connector server

 

copy portions of the BYOC to a different folder for our configurations.

  • ·       On the Components box, which has the PSM portions, go to c:\Program Files (x86)\CyberArk\PSM\Components.
  • ·       Create a folder unde for testing
  • ·       Copy the files PSMAutoItDispatcherSkeleton.au3, PSMGenericClientDriver.dll, PSMGenericClientDriver.xml, and PSMGenericClientWrapper.au3
  • Right click the PSMAutoDispatcherSkeleton file which will open the AutoIt editor. You will now see the script skeleton. 
  • Write your script using the AutoIT window Info tool to identify the attributes on the client application
  • Test your script on cmd -- autoit.exe "scrriptfile.au3" "folder location where script is reside (must end with \)" /test
  • upon successfull execution, create the connection component and configure it
  • Applocker whitelisting for autoit and client app is must

 

 

 

 

 

View solution in original post

9 REPLIES 9

L4 Transporter

You can use any script but AutoIT most easy one for automation of client. You need to perform following pre-req

   

  •     You need to install the app which we will be managing
  • ·   we have to install AutoIt. You use the full installation of AutoIt. - On connector server

 

copy portions of the BYOC to a different folder for our configurations.

  • ·       On the Components box, which has the PSM portions, go to c:\Program Files (x86)\CyberArk\PSM\Components.
  • ·       Create a folder unde for testing
  • ·       Copy the files PSMAutoItDispatcherSkeleton.au3, PSMGenericClientDriver.dll, PSMGenericClientDriver.xml, and PSMGenericClientWrapper.au3
  • Right click the PSMAutoDispatcherSkeleton file which will open the AutoIt editor. You will now see the script skeleton. 
  • Write your script using the AutoIT window Info tool to identify the attributes on the client application
  • Test your script on cmd -- autoit.exe "scrriptfile.au3" "folder location where script is reside (must end with \)" /test
  • upon successfull execution, create the connection component and configure it
  • Applocker whitelisting for autoit and client app is must

 

 

 

 

 

L4 Transporter

You can use any script but AutoIT most easy one for automation of client. You need to perform following pre-req

   

  •     You need to install the app which we will be managing
  • ·   we have to install AutoIt. You use the full installation of AutoIt. - On connector server

 

copy portions of the BYOC to a different folder for our configurations.

  • ·       On the Components box, which has the PSM portions, go to c:\Program Files (x86)\CyberArk\PSM\Components.
  • ·       Create a folder unde for testing
  • ·       Copy the files PSMAutoItDispatcherSkeleton.au3, PSMGenericClientDriver.dll, PSMGenericClientDriver.xml, and PSMGenericClientWrapper.au3
  • Right click the PSMAutoDispatcherSkeleton file which will open the AutoIt editor. You will now see the script skeleton. 
  • Write your script using the AutoIT window Info tool to identify the attributes on the client application
  • Test your script on cmd -- autoit.exe "scrriptfile.au3" "folder location where script is reside (must end with \)" /test
  • upon successfull execution, create the connection component and configure it
  • Applocker whitelisting for autoit and client app is must

 

 

 

 

 

Thanks @Sumit Kumar​ , please share any reference article is available and how to test the custom connector

You can follow https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psm_develop_universal_connector.htm

You can follow https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psm_develop_universal_connector.htm

  • @Sumit Kumar​ ,successfully tested the application using Test your script on cmd -- autoit.exe "scrriptfile.au3" "folder location where script is reside (must end with \)" /test.

Please help me with  create the connection component and configure it. The test case is , should be able to connect to a target machine using custom connector.

 

Thanks in advance !

 

 

  • Copy the file <yourscript>.au3 from the test area to the components folder. Note the folder names in the screenshot.

  • Log into the PVWA as Mike.
  • Create a new connection component.
  • Go to System Configuration, Component Settings, Options, Expand Connection Components, Find the PSM-VNCClientSample Connection which is at the bottom of the list of Connection Components. Right-Click on the PSM-VNCClientSample and click Copy.

  • Scroll back up to the item Connection Components and right-click and select Paste Connection Component.

  • In the Id Value Field, change the title PSM-VNCClientSample to something that better describes this PSM Connection. In this case, rename it to PSM-<YourApp>.
  • With the PSM-<YourApp> created, expand this title. Select Target Settings on the left side. On the right side, change the Protocol to Dummy, and for the ClientDispatcher, change where it says PSMRealVNCDispatcher.au3 to the name of the au3 created before. This au3 file is located in the C:\Program Files (x86)\CyberArk\PSM\Components folder.
  • Under the Target Settings, expand Target Settings and select Lock Application Window.
  • In this example, change the Enable to No. This way it is not locked. However, if you wish to lock this window, leave the Enable to Yes and change the MainWindowClass to the application name. If you choose not to enable Window Locking, you must change the Enable value to No.
  • Click OK.
  • Add component to platform and test
  • make sure account on which you are planning to test should have all the attributes defined into your autoit script

 

  • Copy the file <yourscript>.au3 from the test area to the components folder. Note the folder names in the screenshot.

  • Log into the PVWA as Mike.
  • Create a new connection component.
  • Go to System Configuration, Component Settings, Options, Expand Connection Components, Find the PSM-VNCClientSample Connection which is at the bottom of the list of Connection Components. Right-Click on the PSM-VNCClientSample and click Copy.

  • Scroll back up to the item Connection Components and right-click and select Paste Connection Component.

  • In the Id Value Field, change the title PSM-VNCClientSample to something that better describes this PSM Connection. In this case, rename it to PSM-<YourApp>.
  • With the PSM-<YourApp> created, expand this title. Select Target Settings on the left side. On the right side, change the Protocol to Dummy, and for the ClientDispatcher, change where it says PSMRealVNCDispatcher.au3 to the name of the au3 created before. This au3 file is located in the C:\Program Files (x86)\CyberArk\PSM\Components folder.
  • Under the Target Settings, expand Target Settings and select Lock Application Window.
  • In this example, change the Enable to No. This way it is not locked. However, if you wish to lock this window, leave the Enable to Yes and change the MainWindowClass to the application name. If you choose not to enable Window Locking, you must change the Enable value to No.
  • Click OK.
  • Add component to platform and test
  • make sure account on which you are planning to test should have all the attributes defined into your autoit script

 

Thank You , let me try

  • 1 accepted solution
  • 417 Views
  • 9 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!