0

我正在尝试在 Linux 平台上部署项目战争文件,它给了我以下错误。

com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:1207f4ed-32d0-44e8-ae1c-308b157e9903

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Could not open connection

服务器详情

Server - Tomcat v8.5

属性文件中的配置。

    jdbc.url = jdbc:sqlserver://DC01ODSDBDV03;databaseName=ExecDB_Stg;integratedSecurity=true;

   hibernate.dialect = org.hibernate.dialect.SQLServer2008Dialect
   hibernate.show_sql = true
   hibernate.format_sql = true

我们已经尝试添加以下 javakerberos 属性,但它没有工作。

  authenticationScheme=JavaKerberos  

请帮忙。

4

1 回答 1

0

为了给您省去很多痛苦,请尝试说服 sql 管理员允许您进行密码身份验证。

否则,您需要在 AD 服务帐户下运行 Tomcat,如果您知道如何操作,这并不难。

我写了一篇关于SPNEGO 身份验证的博客。您不需要所有步骤,Tomcat 将作为 AD 服务运行就足够了。(直到配置 krb5.ini 文件)

于 2018-02-12T22:24:18.983 回答