This JDBC driver allows you to connect to a SQL Server instance by using the Windows authentication (NTLM).
It is based on the jTDS driver. The main difference is that the native library used to perform the authentication is auto-loaded at runtime (no need to put it on the lib path).
This project uses Maven as a project builder.
To build this driver, you need to:
- Download the latest source code
- Download the latest jTDS distribution file
- Set the property
jtds-dist-path
inpom.xml
to the right path (for exampleC:\temp\jtds-1.3.1-dist.zip
) - Run
mvn clean build
- The generated library is available in the
target
directory and also in the local repository
- Download the library here or build it yourself
- Put the generated library on the classpath or use the Maven reference (to the local repository):
<dependency>
<groupId>be.nbb</groupId>
<artifactId>jtds-ntlmauth</artifactId>
<version>1.3.1.0</version>
</dependency>
- The connection parameters are exactly the same as jTDS except that you don't need to deal with the lib path