Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
JayZ1
Contributor II
Contributor II

java.sql.SQLException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

I am trying to execute a query and am getting this error:

java.sql.SQLException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

DB: Microsoft SQL Server

JDBC Provider: Open source JTDS

I was able to use the exact same values db/port/schema/user/pass on Datagrip to connect to the database.

I am using this in my advanced settings:

"Domain=DOMAIN;USENTLMV2=TRUE;ssl=require;ApplicationIntent=ReadOnly"

I have also tried TRUE vs true as well as IntegratedSecurity=false

but no luck still getting this error, has anyone got this?

Labels (3)
1 Solution

Accepted Solutions
gjeremy1617088143
Creator III
Creator III

it seems you can have this error message if your account is locked out..

you can check also this stack overflow feed :

https://stackoverflow.com/questions/18603696/trouble-connecting-to-sql-server-login-failed-the-login-is-from-an-untrusted-d

there is a lot of useful answer for this type of error

View solution in original post

3 Replies
gjeremy1617088143
Creator III
Creator III

HI, have you installed the auth.ddl in the win32 or java folder?

you can find it in the jtds.zip

Send me love and Kudos

JayZ1
Contributor II
Contributor II
Author

I am on Mac

gjeremy1617088143
Creator III
Creator III

it seems you can have this error message if your account is locked out..

you can check also this stack overflow feed :

https://stackoverflow.com/questions/18603696/trouble-connecting-to-sql-server-login-failed-the-login-is-from-an-untrusted-d

there is a lot of useful answer for this type of error