AIM - Applicaiton server credential provider failed to provide security object to Websphere 6.1
Symptom
After installing the CACredWS6Mapper450.jar and JavaPasswordSDK.jar files in the <websphere install>/lib directory on a Linux host system and restarting the WebSphere server (steps 3 & 4 of the AIM Implementation Guide v4.50 for IBM WebSphere), the Application server credential provider failed to launch. Both jar files are visible in the Bootstrap Class Path and permissions on the .jar files are correct. The following error was recorded on system.out:
"Caused by: java.sql.SQLException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433"
Enabling TraceLevel FL;PR and TraceLogFile resulted in no additional trace log from the credential provider.
Addition error was recorded on WebSphere's trace log after enabling trace at the JDBC driver of the WebSphere server through admin console:
"J2CA0044E The connection manager failed to obtain a subject from the security associated with connection factory....Java.lang.runtimeexception:com.cyberark.aim.v450.websphere6.CACredMapper"
Environment
10.5;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Application Server Credential Provider (ASCP) ASCP
Cause
The Websphere application server is not launching the CACredWS6Mapper450.jar library file. This is a WebSphere configuration option. It is possible that WebSphere was configured to allow only shared libraries.
Resolution
Create a Shared Library by identifying the CACredWS6Mapper450.jar and JavaPasswordSDK.jar library files.
- The Shared Library should be in the Cell scope (the most global level).
- Associate the Shared Library with the application server (where every application server can use the shared library file)
- Follow the procedures in the documentation to create the new JAAS Application Login with Application Server Credential Provider and to configure the Application to use Cyber-Ark Application Login.
See:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_sharedlib.html for additional details on managing shared libraries in Websphere 6.1.
See:
http://www-01.ibm.com/support/knowledgecenter/SSAW57_7.0.0/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/tcws_sharedlib.html?lang=en for additional details on managing shared libraries in Websphere 7.0
Both methods (shared libraries and putting the jar in the lib folder) are valid and we will look forward to document both of them in the future.
Additional Information
Details
SYMPTOM
After installing the CACredWS6Mapper450.jar and JavaPasswordSDK.jar files in the <websphere install>/lib directory on a Linux host system and restarting the WebSphere server (steps 3 & 4 of the AIM Implementation Guide v4.50 for IBM WebSphere), the Application server credential provider failed to launch. Both jar files are visible in the Bootstrap Class Path and permissions on the .jar files are correct. The following error was recorded on system.out:
Caused by: java.sql.SQLException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433
Enabling TraceLevel FL;PR and TraceLogFile resulted in no additional trace log from the credential provider.
Addition error was recorded on WebSphere's trace log after enabling trace at the JDBC driver of the WebSphere server through admin console:
J2CA0044E The connection manager failed to obtain a subject from the security associated with connection factory....Java.lang.runtimeexception:com.cyberark.aim.v450.websphere6.CACredMapper
PROBLEM
The Websphere application server is not launching the CACredWS6Mapper450.jar library file. This is a WebSphere configuration option. It is possible that WebSphere was configured to allow only shared libraries.
SOLUTION
- Create a Shared Library by identifying the CACredWS6Mapper450.jar and JavaPasswordSDK.jar library files.
The Shared Library should be in the Cell scope (the most global level). - Associate the Shared Library with the application server (where every application server can use the shared library file)
- Follow the procedures in the documentation to create the new JAAS Application Login with Application Server Credential Provider and to configure the Application to use Cyber-Ark Application Login.
See http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_sharedlib.html for additional details on managing shared libraries in Websphere 6.1.
See http://www-01.ibm.com/support/knowledgecenter/SSAW57_7.0.0/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/tcws_sharedlib.html?lang=en for additional details on managing shared libraries in Websphere 7.0
Both methods (shared libraries and putting the jar in the lib folder) are valid and we will look forward to document both of them in the future.