This entry explains how to set up the Microsoft JDBC driver for SQL Server with Windows Integrated Authentication. It covers when the mssql-jdbc_auth DLL is required, where to place it, and how to confirm successful authentication.
Configuration Steps
-
Obtain the latest driver package (e.g.,
sqljdbc_13.4.0.0_enu) and extract the contents. -
Deploy the sqljdbc driver in the \lib or \ext directory of the Ambience/Repertoire 202x installation
-
Locate the Authentication DLL, by default it will be in:
sqljdbc_13.4\enu\auth\x64\mssql-jdbc_auth-13.4.0.x64.dll(Use x64 for 64‑bit JVM, x86 for 32‑bit JVM)
-
Copy the DLL into
C:\Windows\System32(for 64‑bit JVM). Alternatively, add the folder path to your PATH environment variable. -
Go to \etc directory, make a copy and rename hikari-sample.properties, e.g. mssqlwinauth.properties. Edit the mssqlwinauth.properties file as follows:
dataSourceClassName=com.microsoft.sqlserver.jdbc.SQLServerDataSource
dataSource.databaseName=<dbname>
dataSource.portNumber=<port>
dataSource.serverName=<servername>
dataSource.url=jdbc:sqlserver://servername:port;databaseName=dbname;integratedSecurity=true;encrypt=true;trustServerCertificate=true;
integratedSecurity=true→ enables Windows Authentication.encrypt=true→ enforces SSL/TLS encryption.trustServerCertificate=true→ bypasses certificate chain validation (useful for self‑signed certs).
- Edit application.conf to point to the new MSSQL connection properties file.
elixir.data.jdbc {
connection-pool {
implementation = "hikari"
loader = "ambience.etl.jdbc.DefaultConnectionPoolLoader"
definition {
mssqlwinauth="./etc/mssqlwinauth.properties"
}
}
}
- Save and restart your Ambience/Repertoire server. The driver will load the DLL and authenticate using the Windows account running the process.