Windows Authentication on Microsoft SQL Server
Windows authentication means creating a database connection to Microsoft SQL Server using your Windows account, instead of User and Password fields (see figure below). The Microsoft SQL Server JDBC driver depends on native libraries you have to install. To enable this all, follow the steps described in this section.
CloverDX comes with a bundled Microsoft SQL Server JDBC driver.
However, it does not contain native libraries required for Windows authentication on Microsoft SQL Server.
Thus, it is necessary to download the native
mssql-jdbc_auth-8.4.1.x64.dll) and perform some additional settings.
Getting the Native Library
CloverDX bundles Microsoft SQL Server JDBC driver v. 8.4.1.. To download the driver follow these instructions:
Get the dist package.
Extract the contents and go to folder
mssql-jdbc_auth-8.4.1.x64.dllfile to a folder, e.g.
If you are running on the x86 architecture then extract the *x86.ddl version from the ..\x86 directory. Otherwise, the driver will not work properly.
Now there are two ways how to make the
The first one involves changing Windows
If you do not want to do that, go for the second option.
Add the absolute path to the
C:\mssql_dll) to the Windows
PATHvariable. Alternatively, you can put the
dllfile to some folder which is already included in
java.library.pathproperty for all members of the CloverDX Family of products:
Modify VM Parameters in the graph’s Runtime Configuration screen (see figure below). Add this line to VM parameters:
The runtime configuration is valid for all graph within the same workspace.Figure 200. Adding path to the native
dllto VM parameters.
In the script that starts Tomcat, add the
JAVA_OPTS. For example, add the following line at the beginning of
set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=C:\mssql_dll
MS SQL Server - make sure you have:
TCP Port set to 1433 in TCP/IP
Enable Windows Authentication in the URL
Add the integratedSecurity=true parameter to the JDBC URL, e.g.