I was having issue with connecting to MS SQL 2005 using Windows Authentication. I was able to solve the issue with help from this and other forums. Here is what I did:
- Install the JTDS driver
- Do not use the "domain= " property in the jdbc:jtds:://[:][/][;=[;...]] string
- Install the ntlmauth.dll in c:\windows\system32 directory (registration of the dll was not required) on the web server machine.
- Change the logon identity for the Apache Tomcat service to a domain User with access to the SQL database server (it was not necessary for the user to have access to the dbo.master).
My environment:
Windows XP clinet hosting Apache Tomcat 6 with MS SQL 2005 backend on Windows 2003