Best approach to develop PSM connection components

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

Best approach to develop PSM connection components

L4 Transporter

Hello all,

 

i would like to ask a question, when you develop the connection component(google chrome) using autoit for webpages, what is the best approach to send user name and password. I ususally use the command send.

Send($Targetusername)Send($TargetPassword)

And before using command "send" i check always if the window exists or not .

 

Is there any other way to instead of using send like in IE i directly insert the id from html code.

I tried to use the connection component chrome released by cyberark, but sometime it works and some time not.

 

Thanks in advance.

NS

19 REPLIES 19

L1 Bithead

I believe there is an autoit library for chrome automation ( https://www.autoitscript.com/forum/topic/154439-chrome-udf/ ) but its just *so* much less painful to use the Selenium integration in recent version (4 lines of config vs 300-400 lines of autoit code). See webformsample connection component.

L6 Presenter

But why to use AUTO IT? and plus it is not secure to use keyboard functions in auto it. you can use webforms for chrome which are much secure, easily do able using PGU utility. check below link if you are not aware about PGU

 

https://community.cyberark.com/mplace/s/#a3550000000EiC4AAK-a3950000000jjUeAAI

L4 Transporter

But why to use AUTO IT? and plus it is not secure to use keyboard functions in auto it. you can use webforms for chrome which are much secure, easily do able using PGU utility. check below link if you are not aware about PGU

 

https://community.cyberark.com/mplace/s/#a3550000000EiC4AAK-a3950000000jjUeAAI

PGU for PSM Connectors is something I am hearing new, did not it support creating only CPM plugins, wheareas PGU 1.2 also supprting Web based CPM plugin creation such as FB, Twitter etc, is there a disconnect here or I am wrong?

PGU for PSM Connectors is something I am hearing new, did not it support creating only CPM plugins, wheareas PGU 1.2 also supprting Web based CPM plugin creation such as FB, Twitter etc, is there a disconnect here or I am wrong?

Thanks for your reply...I tried PGU but to upload this connection component i need shell script to up. And i don't have permission to upload by shell scripting. In few days i will try in my lab and check how it works.

what do u mean by " is there a disconnect here or I am wrong?"

@Colin McKinnon​ thanks for your reply. Well i tried the webformsample connection component.

 

j_username>{Username}(SearchBy=id)

j_password>{Password}(SearchBy=id)

other>(Button)(SearchBy=id)

 

I took this fields from html code but it's not able to find any field. I tried by id,name, and leaving without searchby. But i don't know why it's not able to find any field.

 

 PSMDU019I Dispatcher trace message: [Selenium :: WaitForElement -> Waiting until element '"j_username"' is found in page. Timeout: '10'.]

 PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element '"j_username"' in page using type 

 PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element '"j_username"' was not found using type 'ID'.]

 PSMDU018E Dispatcher error: [Selenium :: WaitForElement -> Timeout error. Element '"j_username"' was not found in new page. ]

 

Do u have any idea how to proceed??

 

Thanks in advance

@Ankush_Agarwal (Community Member)​ thanks for your reply. Well i tried PGU utility, and it seems good but there are a lot of URL which cannot opened by chrome useragent so i must use IE for that...

 

I wonder if on your PGU utility works with every URL or agents.

 

Thanks in advance.

I mean can we really create PSM connectors with the help of PGU, my knowledge says it is used for creating CPM plugin so is there a disconnect or I am completely wrong??

I mean can we really create PSM connectors with the help of PGU, my knowledge says it is used for creating CPM plugin so is there a disconnect or I am completely wrong??

The errors you displayed here saying that the element j_username is not on the URL you provided:

Make sure you didn't miss any configurations (like correct logon-url, login form - on this specific component, correct locator settings and such).

You can read a bit more on how to create a selenium connection component (chrome/IE) here:

https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/psm_WebApplication.htm?Highlight=WebAppSample

 

GL!

Hello @Baruch Goldberger​ 

Thanks for your reply. I really don't understand where i am making mistake or this component is not getting the parameter...

Here is HTML code:

 

*************************************************************

<form id="loginData" name="loginData" method="post" action="/console/j_security_check">

   <div class="message-row">

    <noscript><p class="loginFailed">Extra.</p></noscript>

        

     <p>Server</p>

          

   </div>

   <div class="input-row">

    <label for="j_username">

    Nome utente:</label>

    <span class="ctrl">

     <input class="textinput" type="text" autocomplete="off" name="j_username" id="j_username">

    </span>

   </div>

   <div class="input-row">

    <label for="j_password">

     Password:</label>

    <span class="ctrl">

     <input class="textinput" type="password" autocomplete="off" name="j_password" id="j_password">

    </span>

   </div>

   <div class="button-row">

    <span class="ctrl">

     <input class="formButton" type="submit" onclick="form.submit();this.disabled=true;document.body.style.cursor = 'wait'; this.className='formButton-disabled';" value="Login">

    </span>

    <input type="hidden" name="j_character_encoding" value="UTF-8">

   </div>

  </form>

 

**************************************************************************************************

 

As you can see in the HTML code my form id="loginData", id="j_username", and id="j_password". And below you can see the errors:

 

*****************************************************

[25/03/2019 | 12:14:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'ID'.]

[25/03/2019 | 12:14:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'ID'.]

[25/03/2019 | 12:14:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'NAME'.]

[25/03/2019 | 12:15:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'NAME'.]

[25/03/2019 | 12:15:14] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Waiting for element 'j_username' in page using type 'CLASS'.]

[25/03/2019 | 12:15:44] | :: | PSMDU019I Dispatcher trace message: [ElementTypeBase :: WaitIUntilElementIsVisible -> Element 'j_username' was not found using type 'CLASS'.]

[25/03/2019 | 12:15:44] | :: | PSMDU018E Dispatcher error: [Selenium :: WaitForElement -> Timeout error. Element 'j_username' was not found in new page. ]

***********************************************

Do u have any idea where is the problem..

 

Thanks in advance..

 

Hello @Himanshu Pandey​ 

 

i really tried to create PSM connector for web page but still not successfull. Your knowledge is saying right that it used to create CPM plugin but now i can see option of PSM web connector. Field_Content_versions_oct20__0682J0000063hLlQAI.png

Which connection component did you copy when creating that one?

Was it PSM-WebAppSample or PSM-WebFormSample ?

Also, which PAS version is installed?

  • 1513 Views
  • 19 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!