SQL Server : Windows authentication with Tomcat

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on email

By default SQL server 2008 is not enabled for remote connection

First you need to enable SQL server for remote connection to avoid the “SQL server connection refused: connect” error.

Assuming your SQLserver is enabled for windows authentication and remote connection we can proceed as below.

1. Install Tomcat as service under the desired login account.

Run the service.bat file as below

Image

Image

 

2. Once installed, go to services and add the login account

Image

 

3. Copy the ntlmauth.dll file to any directory that is in the system path. We can put it in the windows/system32 directory

This is needed for windows SSO authentication.

You can go to the infocaptor/dash/system/jtds../x64/sso directory. Choose the appropriate file based on your operating system. (e.g x86 for 32 bit and x64 for 64bit)

Image

 

4. Create connection within infocaptor

When you define a new connection to use as single signon windows authentication, leave the database user and password blank (empty)

Image

 

5. Test the connection

Now, go to infocaptor, drag a grid , right click and select data source.

Next, pick the sql_2008_sso connection and click “show tables” in the SQL tab

Image

 

Success!. The list of tables indicate that infocaptor connected to SQLserver using windows authentication.

Background: InfoCaptor connects to sqlserver via tomcat and tomcat passes the windows credentials to sql server. Make sure you create a windows service account if you decide to use this in any production environment.

The Core Tools

Spending Too much time on YouTube

InfoCaptor AI turns long videos into bite-sized summaries, searchable tags, organized dashboards and stunning Knowledge Graphs — learn more in less time
SALE
The ability to filter and share by tag or topic is 🔥. I’ve never seen a YouTube tool that helps with knowledge sharing like this.
- Will Zhang
Love how the summary is broken down by sections. I jump right to the part I care about instead of skimming a full transcript.
- David Lin