dpberry178
dpberry178

Reputation: 616

How do I configure integrated authentication for SQL Server JDBC driver in Eclipse?

I am trying to create a new database connection to SQL Server in Eclipse, and I am getting the following error:

*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:f76bec48-e9f8-4a03-aea3-4840e8674267*

Environment details:


Steps that led to the error:

  1. Opened Data Source Explorer and added a new Database Connection
  2. Chose Microsoft SQL Server 2008 JDBC Driver (I was not able to get any of the newer ones to work; it wouldn't let me enter any properties).
  3. Pointed Eclipse to my JAR file (sqljdbc42.jar)
  4. Entered the database properties and chose "Use integrated authentication"
  5. Clicked "Test Database Connection"

This is where I get the error noted above.


What I have tried to fix the error:


Every time I try to ping this connection, I get the same error:

*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:733c823d-b740-4f70-89a4-4109a03dad58*

However, I am able to connect to this server/database with Windows Authentication via SQL Server Management Studio.

Thanks for your help!

Upvotes: 0

Views: 2026

Answers (1)

ken411
ken411

Reputation: 21

Late response for anyone who might still run into this... I had to drop a copy of the mssql-jdbc_auth-X.Y.X.x64.dll file (from the driver's sqljdbc_X.Y\enu\auth\x64 folder) into the java.library.path on my Windows 10 machine and restart eclipse. After that, I was able to connect using the integrated security. BTW, the java.library.path should, in part, reflect your Windows environment's PATH variable.

Upvotes: 1

Related Questions