User with SQL database and Windows authentication have issues and get these errors:
com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:XXXXXXXX-1234-5678-9012-34567890XXXX
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:3422)..
Caused by: java.lang.UnsatisfiedLinkError: no mssql-jdbc_auth-9.4.1.x64 in java.library.path
Release : 12.x
Component : Workload Automation Database Agent / Microsoft for SQL
OS: Windows only
The Database/SQL plugin will need new drivers and DLL installed with the agent.
Download the latest JDBC driver from Microsoft. Extract the jar file from the zip.
It will have this naming format:
mssql-jdbc-9.x.x.jre8 (e.g mssql-jdbc-9.4.1.jre8)
Copy the jar to <agent install directory/jars/ext>
E.g "C:\Program Files\CA\WA Agent\jars\ext"
Remove any existing sqlJDBC jar files (move it out of agent directory, don't rename).
Next, copy the auth DLL from JDBC package downloaded from Microsoft. It will be under: "sqljdbc_9.4/enu/auth/x64"
The DLL naming format is:
mssql-jdbc_auth-9.x.x.x64.dll, e.g. mssql-jdbc_auth-9.4.1.x64.dll
Copy that DLL to "<agent install directory"
E.g "C:\Program Files\CA\WA Agent"
Sample JDBC string for domain user:
jdbc:sqlserver://db_host:1433;databaseName=MyDB;integratedSecurity=true;
The Database plugin may not be able to login as well. If DB accepts integrated and native authentication then start agent as AD user that can login to SQL.
There is a recommendation from Microsoft about it as well. Make sure that agent machine is part of the same domain as SQL DB and add machine account (it has $ at end) to the DB. Consult Windows admin about machine account where agent is installed, then add it to the DB. The following is a sample SQL to add machine accounts
CREATE LOGIN [MyDomain\MyComputer$] FROM WINDOWS;