CPM Change password for Web interface based on Generic Web App Platform

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

CPM Change password for Web interface based on Generic Web App Platform

L2 Linker

Hi Everyone, I am trying to configure the Change Password for a Website account without success so far.

 

Current setup:

  • Connection via PSM is OK
  • Followed the steps of Web Applications for CPM page https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/Plugins/CPM_WebApplication.ht...
  • The latest versions Credentials Management .NET SDK and Web Application CPM Plugin Framework are in the CPM bin folder
  • I installed Chrome version 94 (32 bits) on the CPM --> IT says up to version 88 supported. Might change to this version if relevant.
  • Created the platform based on Generic Web App
  • Updated all the parameters to match the website
  • Created the WebFormField and placed it in the CPM bin folder --> XXXXX hide the real URL
[Change] eaLogin-emailInput>{Username}(SearchBy=id) eaLogin-passwordInput>{Password}(SearchBy=id) eaLogin-loginBtn>(Button)(SearchBy=id) (Navigate=https://XXXXXXXX/user-management/#user-profile) currentPasswordInput>{password}(SearchBy=id) resetProfilePasswordInput>{newpassword}(SearchBy=id) resetProfilePasswordConfirmInput>{newpassword}(SearchBy=id) ebBtn eaUserProfile-wChangePassword-changePassword>(Button)(SearchBy=class) ebNotification-content>(Validation)(SearchBy=class)
  • Set the debug to Yes on the platform
  • I get the following error on Password Change:
Execution error. General error occurred. Review the logs for more information.
  • See debug log file extracts with ERRORS below
15/10/2021 02:31:24.100 | Info -> BaseAction :: ReplacePlaceHolders -> START 15/10/2021 02:31:24.100 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.101 | Info -> PlatformPlaceholder :: Replace -> Replacing placeholders in section 'Change'. 15/10/2021 02:31:24.101 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.102 | Info -> ExtraPassAccountsPlaceholder :: Replace -> START 15/10/2021 02:31:24.103 | ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'Username' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration. 15/10/2021 02:31:24.104 | Info -> PlatformPlaceholder :: ReplacePlaceholderMatch -> Searching parameter Username in target section 15/10/2021 02:31:24.105 | Info -> PlatformPlaceholder :: TryGetValueFromTarget -> Using Username from Target account properties. [email protected]. 15/10/2021 02:31:24.105 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.105 | Info -> PlatformPlaceholder :: Replace -> Line 1: eaLogin-emailInput>[email protected](SearchBy=id). 15/10/2021 02:31:24.105 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.105 | Info -> ExtraPassAccountsPlaceholder :: Replace -> START 15/10/2021 02:31:24.105 | ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'Password' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration. 15/10/2021 02:31:24.105 | Info -> PlatformPlaceholder :: ReplacePlaceholderMatch -> Searching parameter Password in target section 15/10/2021 02:31:24.106 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.106 | Info -> PlatformPlaceholder :: Replace -> Line 2: eaLogin-passwordInput>******(SearchBy=id). 15/10/2021 02:31:24.106 | Info -> PlatformPlaceholder :: Replace -> Line 3: eaLogin-loginBtn>(Button)(SearchBy=id). 15/10/2021 02:31:24.106 | Info -> PlatformPlaceholder :: Replace -> Line 4: (Navigate=https://XXXXXXX/user-management/#user-profile). 15/10/2021 02:31:24.106 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.106 | Info -> ExtraPassAccountsPlaceholder :: Replace -> START 15/10/2021 02:31:24.107 | ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'password' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration. 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: ReplacePlaceholderMatch -> Searching parameter password in target section 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> Line 5: currentPasswordInput>******(SearchBy=id). 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.107 | Info -> ExtraPassAccountsPlaceholder :: Replace -> START 15/10/2021 02:31:24.107 | ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'newpassword' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration. 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: ReplacePlaceholderMatch -> Searching parameter newpassword in target section 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> Line 6: resetProfilePasswordInput>******(SearchBy=id). 15/10/2021 02:31:24.107 | Info -> PlatformPlaceholder :: Replace -> START 15/10/2021 02:31:24.107 | Info -> ExtraPassAccountsPlaceholder :: Replace -> START 15/10/2021 02:31:24.107 | ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'newpassword' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration. 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: ReplacePlaceholderMatch -> Searching parameter newpassword in target section 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: Replace -> Line 7: resetProfilePasswordConfirmInput>******(SearchBy=id). 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: Replace -> Line 8: ebBtn eaUserProfile-wChangePassword-changePassword>(Button)(SearchBy=class). 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: Replace -> Line 9: ebNotification-content>(Validation)(SearchBy=class). 15/10/2021 02:31:24.108 | Info -> PlatformPlaceholder :: Replace -> END 15/10/2021 02:31:24.108 | Info -> BaseAction :: ReplacePlaceHolders -> END

 

6 REPLIES 6

L2 Linker

Another extract that didn't fit in the first message:

15/10/2021 02:31:24.134 | Info -> BrowserFactory :: GetBrowser -> Initiating Chrome browser. 15/10/2021 02:31:24.135 | Info -> BaseAction :: RunCommands -> START 15/10/2021 02:31:24.135 | Info -> WebPageExecuter :: OpenBrowser -> START 15/10/2021 02:31:24.139 | Info -> HTMLPageController :: OpenWebBrowser -> START 15/10/2021 02:31:24.141 | Info -> FolderUtilities :: DeleteFolder -> Searching for folder 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\CPMChromeData\SYSTEM\[email protected]' 15/10/2021 02:31:24.141 | Info -> FolderUtilities :: DeleteFolder -> Attempting to delete folder. 15/10/2021 02:31:24.183 | Info -> FolderUtilities :: DeleteFolder -> Failed to delete previous session temp folder C:\Windows\system32\config\systemprofile\AppData\Local\Temp\CPMChromeData\SYSTEM\[email protected]. Warning: Access to the path 'BrowserMetrics-6168E8FC-2A38.pma' is denied. 15/10/2021 02:31:24.189 | Info -> Chrome :: InitChromeOptions -> Active session's temporary directory is C:\Windows\system32\config\systemprofile\AppData\Local\Temp\CPMChromeData\SYSTEM\[email protected] 15/10/2021 02:31:24.189 | Info -> Chrome :: InitChromeOptions -> Enforcing certificate on web site. 15/10/2021 02:31:24.196 | Info -> Chrome :: GetChromeDriverServiceProcessId -> Initiating driver from C:\Apps\CyberArk\Password Manager\bin. 15/10/2021 02:32:24.895 | Info -> HTMLPageController :: CloseBrowser -> START 15/10/2021 02:32:24.904 | ERROR -> HTMLPageController :: CloseBrowser -> Failed to close browser. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. at CyberArk.WebAutomationUtils.HTMLPageController.CloseBrowser() 15/10/2021 02:32:24.904 | Info -> HTMLPageController :: CloseBrowser -> END 15/10/2021 02:32:24.904 | Info -> HTMLPageController :: KillDriverProcess -> START 15/10/2021 02:32:24.908 | Info -> HTMLPageController :: KillDriverProcess -> END 15/10/2021 02:32:24.908 | Info -> HTMLPageController :: DeleteSessionTempFolder -> START 15/10/2021 02:32:24.908 | Info -> FolderUtilities :: DeleteFolder -> Searching for folder 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\CPMChromeData\SYSTEM\[email protected]' 15/10/2021 02:32:24.909 | Info -> FolderUtilities :: DeleteFolder -> Attempting to delete folder. 15/10/2021 02:32:24.931 | Info -> FolderUtilities :: DeleteFolder -> Failed to delete session temp folder C:\Windows\system32\config\systemprofile\AppData\Local\Temp\CPMChromeData\SYSTEM\[email protected]. Warning: Access to the path 'BrowserMetrics-6168E8FC-2A38.pma' is denied. 15/10/2021 02:32:24.932 | Info -> HTMLPageController :: DeleteSessionTempFolder -> END 15/10/2021 02:32:24.936 | ERROR -> BaseAction :: HandleGeneralError -> Got exception: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:39933/session timed out after 60 seconds. ---> System.Net.WebException: The operation has timed out at System.Net.HttpWebRequest.GetResponse() at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) --- End of inner exception stack trace ---

 

L4 Transporter

Here is your problem,

 

New password is not passed to the webpage

 

Failed to replace parameter 'newpassword' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration.

 

May be the page that you are navigating is not loaded?

Do I have to specify anything in the required properties?

Field_Content_versions_oct20__0682J00000GZOU6QAP.png 

I now have the issue at the address field:

ERROR -> ExtraPassAccountsPlaceholder :: Replace -> Failed to replace parameter 'address' in web form field file. Parameter has an empty value or is not defined at both account and platform level configuration.

 

I updated the changeURL to

https://{address}:8383/user-management/#user-profile

and the webformfield to

[Change] currentPasswordInput>{password}(SearchBy=id) resetProfilePasswordInput>{newpassword}(SearchBy=id) resetProfilePasswordConfirmInput>{newpassword}(SearchBy=id) ebBtn eaUserProfile-wChangePassword-changePassword>(Button)(SearchBy=class) ebNotification-content>(Validation)(SearchBy=class)

 

I replaced all parameters by the actual value including passwords to test.

 

I have now the following error:

18/10/2021 05:09:24.939 | ERROR -> BaseAction :: HandleGeneralError -> Got exception: System.Management.ManagementException: Invalid class at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() at CyberArk.WebAutomationUtils.HTMLPageController.GetBrowserProcessPID(Int32 browserDriverPID, String processName) at CyberArk.WebAutomationUtils.HTMLPageController.OpenWebBrowser(BrowserData browserData) at CyberArk.WebAutomationCommon.WebPageExecuter.OpenBrowser(BrowserData browserData) at CyberArk.Extensions.Plugin.WebApp.BaseAction.RunCommands(String url, List`1 commands, IExecuter actionExecuter, Boolean runValidations, String& errorMessage) at CyberArk.Extensions.Plugin.WebApp.Verify.run(PlatformOutput& platformOutput). 18/10/2021 05:09:24.939 | Info -> Verify :: run -> END 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: RunPlugin() -> --------------------------------- Plugin Section End -------------------------------------- 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: printResultsToLog() -> Plugin results : 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: printResultsToLog() -> exit code = 9999 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: printResultsToLog() -> Message = General error occurred. Review the logs for more information 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: RunPlugin() -> End 18/10/2021 05:09:24.939 | Info -> PluginWrapper :: End() -> End 18/10/2021 05:09:24.939 | Info -> CPMNetPlatform :: Main() -> End

 

L0 Member

Hi Chris, I have the same problem i my enviroment.

Did you solve the problem?

L1 Bithead

Here is the solution:

Check chromedriver.exe in C:\Program Files (x86)\CyberArk\Password Manager\bin

Ensure chromedriver version is match your Google Chrome browser version installed.

  • 2218 Views
  • 6 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!