Hey I am having trouble connecting to an SQL Server with Java code that is running on Linux.
If I set integratedSecurity=true
, then the java code fails with the following error:
WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:b030b480-453d-4007-8151-a552150f74cd
which makes sense as there will be no sqljdbc.dll
file on Linux.
But if I set integratedSecurity=false
, then I get the following error:
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'IT_DEV_USER'.
So does anyone know how I can connect to SQL Server with integratedSecurity
set to false? (Note that I cant even connect when the Java code is running on Windows when integratedSecurity
is set to false.)
If not, is there any way I can get integratedSecurity
working on Linux?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…