ASCP - Integration for Websphere Classic and CACredWSMapper710.jar doesn't work

ASCP - Integration for Websphere Classic and CACredWSMapper710.jar doesn't work

93
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 16:09 PM


Symptom


While securing application on Websphere classic platform - Application Server 8.5.5.18 and Oracle11, using ASCP, the connection using normal datasource is working well but when change the datasource to use ASCP Credential mapping, it doesn't work.

There is no information logged in \Program Files\CyberArk\ApplicationPasswordProvider\Logs:
APPconsole.log
APPtrace.log
APPaudit.log


Environment


12.0;13.0;13.2 Credential Providers Application Server Credential Provider (ASCP)

Oracle 11g-XE - container version running on CentOS8 under docker
Websphere Application Server 8.5.5.18, running on Windows 2019 Server
Credential Provider (CP) v13.0, Idira Vault version 13.2
Application Server Credential Provider (ASCP) v12.0 with WebSphere CACredWSMapper710



Cause


Application is using authorization type other than container. Screenshot 2023-06-26 at 2.58.35 PM.png

 



Resolution


In application, the data source definition should be as below:

DataSource ds = (DataSource) ctxt.lookup("java:comp/env/jdbc/hr_connDS_ASCP");


The resource reference in web.xml should be as below:

<resource-ref>

  <res-ref-name>jdbc/hr_connDS_ASCP</res-ref-name>

  <res-type>javax.sql.DataSource</res-type>

  <res-auth>Container</res-auth>

  <res-sharing-scope>Unshareable</res-sharing-scope>

  <mapped-name>jdbc/hr_connDS_ASCP</mapped-name>

</resource-ref>

Double check on Resource authorization configuration on Websphere's Applications page

Screenshot 2023-06-26 at 3.01.19 PM.png
Reference Documentation: https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/Configuring-App-Server-WebSphere-AppServerClassic.htm?tocpath=Administration%7CApplication%20Server%20Credential%20Provider%7CWebSphere%20configuration%7C_____1#



Actions
  • Print
  • Copy Link

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