0

SonarQube is installed as a service. jtds-1.3.1-dist is used for SQL Server access. The service works using SQL Server authentication.

I've tried many configurations - a few examples including:

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

while the ntlmauth.dll is scattered around half the folders in the hard drive!

The logs either say things similar to 'user sonar cannot connect' or 'user is from a different domain'.

Nothing seems to work.

だれかが sonar.jdbc.url の実際の例と ntlmaut.dll の場所を投稿できれば幸いです。

4

1 に答える 1

2

統合認証を使用したSonarQubeとSQL Serverのセットアップ/構成に従って、うまくいきました。

SonarQubeサーバー

SonarQube サーバーのバージョン = 5.2

sonar.properties

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

ご注意ください:

  1. SonarQubeという名前のデータベースが存在し、その照合順序で大文字と小文字を区別(CS) し、アクセントを区別する(AS) 必要があります。Microsoft Sql Server で統合セキュリティを使用する場合は、次の接続文字列を使用します。
  2. 「 Integrated Security 」を使用している場合は、 「 sonar.jdbc.username」または「sonar.jdbc.password 」プロパティを設定しないでください。
  3. 統合セキュリティ」を機能させるには、Microsoft SQL JDBC ドライバー パッケージを http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774からダウンロードし、 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 に答える