0

SonarQube 作为服务安装。jtds-1.3.1-dist 用于 SQL Server 访问。该服务使用 SQL Server 身份验证工作。

我尝试了许多配置 - 一些示例包括:

sonar.jdbc.url=jdbc:jtds:sqlserver://dbserver/SonarQube;instance=instance1;SelectMethod=Cursor;integratedSecurity=true

sonar.jdbc.url=jdbc:jtds:sqlserver://dbserver/SonarQube;instance=instance1;SelectMethod=Cursor;integratedSecurity=true;domain=thedomain

sonar.jdbc.url=jdbc:jtds:sqlserver://dbserver/SonarQube;instance=instance1;SelectMethod=Cursor;integratedSecurity=true;useNtlm2=true;domain=thedomain

而 ntlmauth.dll 分散在硬盘驱动器中一半的文件夹周围!

日志要么说类似于“用户声纳无法连接”或“用户来自不同域”的内容。

似乎没有任何效果。

如果有人可以发布 sonar.jdbc.url 的工作示例和 ntlmaut.dll 的位置,我将不胜感激。

4

1 回答 1

2

使用集成身份验证设置/配置 SonarQube 和 SQL Server 对我有用。

SonarQube 服务器

SonarQube 服务器版本 = 5.2

声纳属性

sonar.jdbc.url = jdbc:sqlserver://dbserver;databaseName=SonarQube;integratedSecurity=true

请注意:

  1. 必须存在名为SonarQube的数据库,并且其排序规则必须区分大小写(CS) 和区分重音(AS) 如果要使用 Microsoft Sql Server 的集成安全性,请使用以下连接字符串
  2. 如果您使用“集成安全”,请不要设置“ sonar.jdbc.username ”或“ sonar.jdbc.password ”属性。
  3. 要使“集成安全”工作,您必须从 http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774下载 Microsoft SQL JDBC 驱动程序包 并将 sqljdbc_auth.dll 复制到一个文件夹并将文件夹添加到环境变量%PATH%。根据 SonarQube 服务器计算机的体系结构复制 32 位或 64 位版本的 dll。
  4. 此版本的 SonarQube 已使用 Microsoft SQL JDBC 4.1 版和 Microsoft SQL Server 2012 进行了测试。
于 2015-11-30T05:47:44.980 回答