ASCP WebSphere Integration with DB2 - Security mechanism not supported. ERRORCODE=-4214,

ASCP WebSphere Integration with DB2 - Security mechanism not supported. ERRORCODE=-4214,

111
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:59 PM


Symptom


ASCP is able to fetch the password  for the account from Vault . One should see a log event similar to below mentioned log event in AppConsole.log

+++++
| APPAU001I Provider Prov_xxxxx has successfully fetched password [<Account details>] with query [.......] for application [<Application Name>]. Fetch reason: []
+++++

However, after fetching the password  when connection is being  established with DB2 database it fails with below error -

++++
Failed to connect to the DataSource "". Encountered java.sql.SQLInvalidAuthorizationSpecException:...... Connection authorization failure occurred.

Reason: Security mechanism not supported. ERRORCODE=-4214, SQLSTATE=28000 DSRA0010E: SQL State = 28000, Error Code = -4,214
++++ 



Environment


Credential Providers Application Server Credential Provider (ASCP)

 DB database  Version - 11.5.9.0  with any CP version and compatible WebSphere version , more details can be found at this link - https://docs.cyberark.com/credential-providers/latest/en/content/cp%20and%20ascp/sysreq-application-server-credential-provider.htm?tocpath=Installation%7CSystem%20Requirements%7C_____3



Cause


Regarding the security requirements, the ERRORCODE=-4214 is a known behavior with DB2 11.5.9. The newer DB2 JDBC driver defaults to an encrypted connection (Value: 9), which is likely mismatching the DB2 server's current configuration.



Resolution


You can bypass the need to reconfigure the database by explicitly defining the correct security mechanism directly in WebSphere.

Please have the application team apply the following configuration:

1. Go to the Custom Properties of the ASCP Data Source (Created ASCP integration ) in WebSphere.

2. Add a new custom property:
Name: securityMechanism (Note: Do not add the 'ascp_' prefix)
Value: 3 (This forces standard clear text authentication)
Type: java.lang.Integer (or java.lang.String if WebSphere defaults to it)

3. Save directly to the master configuration.

4. Restart the Application Server to flush the connection pool.

5. Test the connection after the restart.



Actions
  • Print
  • Copy Link

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