HY000 Native error: 4321 error when managing SAP HANA target via CPM
119
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 12:58 PM
Symptom
CPM fails to manage a SAP HANA target with error:
HY000 Native error: 4321 Message: [SAP AG][LIBODBCHDB32 DLL][HDBODBC32] General error;4321 only secure connections are allowed.
A connection can be established while using Windows ODBC.
Environment
10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8 Component: Central Policy Manager (CPM) Functional Area: Other
Cause
SSL is enabled, however the connection needs to be encrypted as well.
Resolution
Add the parameter ENCRYPT=true; to the connection string.
For example:
Driver={HDBODBC32};ServerNode=%ADDRESS%:%PORT%;Uid=%USER%;Pwd=%LOGONPASSWORD%;ENCRYPT=true;