embulk / embulk-input-jdbc

MySQL, PostgreSQL, Redshift and generic JDBC input plugins for Embulk
Other
102 stars 74 forks source link

Add adal4j to support active directory authentication #230

Closed legiangthanh closed 2 years ago

legiangthanh commented 2 years ago

mssql-jdbc will dynamically load the ada4j library when authentication is ActiveDirectoryPassword. But currently, the gem's classpath doesn't contain the ada4j library, mssql-jdbc will throw an exception.

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Failed to load ADAL4J Java library for performing ActiveDirectoryPassword authentication.
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.validateAdalLibrary(SQLServerConnection.java:4233)

This PR will add the add4j library to the dependency of sqlserver to include this library in the gem's classpath.

dmikurube commented 2 years ago

@hito4t We're going to release this (for SQLServer) as 0.12.4, jfyi.