Score:0

ODBC connection to MS SQL Server only works woth SECLEVEL 0

gp flag

I am trying to connect to an MS SQL Server from Ubuntu 22.04. I installed the ODBC driver for the MS SQL server, created the DSN, and when I tested the connection using isql, I got the error:

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server: TCP Provider: Error code 0x2746

Upon further research, I found that this is related to OpenSSL. To get the supported TLS version on the server, I executed nmap --script ssl-enum-ciphers -p 1433 db.server.com and in the output, I can see that the server supports TLS 1.2.

The only that worked for me was setting this in the openssl.cnf file:

MinProtocol = TLSv1_2
CipherString = DEFAULT@SECLEVEL=0

If I change the SECLEVEL to 1, I again get the same error as above.

Could you please let me know what could be the possible reasons for it to work with SECLEVEL 0 and not with 1? And is there anything that I need to change on the server to make it work with SECLEVEL 1?

Thank you.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.