To connect to Sqlserver from Linux with a domain account you use kerberos. Basically you connect with kinit first, then use trusted_connection:
note: on a Mac you can just ticket viewer to connect.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to connect to SQL Server using JDBC Driver, with the user as myDomain\myUser, from Linux without DotNet?
PS: (edited, fixed user in this question from myUser\myDomain to myDomain\myUser)
To connect to Sqlserver from Linux with a domain account you use kerberos. Basically you connect with kinit first, then use trusted_connection:
note: on a Mac you can just ticket viewer to connect.
with the user as myDomain\myUser
If the Linux server is joined to a domain, then you can use the connection string property "integratedSecurity", see
https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver16
Hi @Anonymous
Please check this article for detailed steps: Microsoft SQL Server JDBC for Linux.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".