Splunk Search

DB Connect 1.1.4: Why am I getting error "The login is from an untrusted domain and cannot be used with Windows authentication." trying to connect to MS SQL?

wsnyder2
Path Finder

We are trying to set up a connection to MSSQL database with dbconnect version 1.1.4 .

See this error when we try to save the connection:

"Encountered the following error while trying to save: In handler 'databases': Error connecting to database: java.sql.SQLException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication."

any suggestions?

wsnyder2
Path Finder

Hi .. so we are trying to connect to a MS SQL cluster/HA instance. Any advice?

0 Karma

mbenwell
Communicator

You should be able to do it.

What operating system are you using on the Splunk server you are runnnng db connect on? The key information is the last line of that error. if db connect is on a Linux host it won't be part of a trusted domain

Have you followed ssievert_splunk advice?

0 Karma

mbenwell
Communicator

I suspect DB connect running from a Linux host or a windows host on a different domain

For the sake of testing can you try using sql authentication instead of windows authentication?

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

A couple of thoughts:
- Upgrade to the latest DBConnect version (1.1.6)
- When connecting to MSSQL, install the official JDBC driver from Microsoft

Check this

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...