ASCP - Integration for Websphere Classic and CACredWSMapper710.jar doesn't work
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.
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
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#