SQL and Windows Authentication with WA Agent Database Plugin
search cancel

SQL and Windows Authentication with WA Agent Database Plugin

book

Article ID: 230956

calendar_today

Updated On:

Products

Workload Automation Agent CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation DE - Business Agents (dSeries) CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

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

 

Environment

Release : 12.0

Component : Workload Automation Database Agent

OS: Windows only

Cause

The Database plugin will need new drivers and DLL installed with the agent.

Resolution

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"

 

Additional Information

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;