Connect to SQL Server from Linux via JDBC using integratedSecurity (Windows authentication)?

前端 未结 4 1814
情话喂你
情话喂你 2020-12-15 22:30

Hey I am having trouble connecting to an SQL Server with Java code that is running on Linux.

If I set integratedSecurity=true, then the java code fails

4条回答
  •  不知归路
    2020-12-15 22:59

    If you want to use integrated security and using JDBC Driver 4.0 or greater then you add the following in your jdbc connection string.

    integratedSecurity=true;authenticationScheme=JavaKerberos
    

    More information: http://blogs.msdn.com/b/psssql/archive/2015/01/09/jdbc-this-driver-is-not-configured-for-integrated-authentication.aspx

提交回复
热议问题