且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用integratedSecurity(Windows身份验证)通过JDBC从Linux连接到SQL Server?

更新时间:2022-04-24 10:43:58

如果要使用集成安全性并使用JDBC Driver 4.0或更高版本,则在jdbc连接字符串中添加以下内容。

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

更多信息: http:// blogs .msdn.com / b / psssql / archive / 2015/01/09 / jdbc-this-driver-is-configured-for-integrated-authentication.aspx