on 12-05-2022 7:53 PM
Hi,
i am running a C++ application which connects to sybase 16 DB.
This application uses sybase DB LIB API call (like dblogin, dbopen etc).
Recently there is a password encryption enabled on this database which requires setting EncryptPassword=1 in connection string while connecting to database.
How this DB connection can be safely established from a C++ application using sybase DB lib.
There is documentation at: https://help.sap.com/docs/SAP_ASE_SDK/508bbd4903c74c50be8afcc0b92ebc9a/c016059d6db61014bf8f040071e61...
However, be aware that CTLIB should be used for all new application development - https://launchpad.support.sap.com/#/notes/3059630. DBLIB is very old and may be removed in future SDK releases.
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
Thanks for your response.
This is the old application which is already using DBLIB and this application need to be migrated to sybase 16 encryption enabled server. It’s difficult for us to move the whole application on CTLIB.
I tried setting DBSETLENCRYPT to true in connection request but it did not work. Should we need to get the encryption key from server, encrypt the password and then send it ? Do you have any example as to how this can be done.
In CTLIB its a one liner change to support this enhancement. If I am not wrong just need to set CS_SEC_EXTENDED_ENCRYPTION.
Kindly provide detail example as to how to support this enhancement in DBLIB
User | Count |
---|---|
67 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.