title: Connect to SQL Server from Linux via JDBC using integratedSecurity (Windows authentication)?
body: <p>Hey I am having trouble connecting to an SQL Server with Java code that is running on Linux.</p>
  
  <p>If I set <code>integratedSecurity=true</code>, then the java code fails with the following error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>which makes sense as there will be no <code>sqljdbc.dll</code> file on Linux.</p>
  
  <p>But if I set <code>integratedSecurity=false</code>, then I get the following error:</p>
  
  <pre><code> com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'IT_DEV_USER'.
  </code></pre>
  
  <p>So does anyone know how I can connect to SQL Server with <code>integratedSecurity</code> set to false? (Note that I cant even connect when the Java code is running on Windows when <code>integratedSecurity</code> is set to false.)</p>
  
  <p>If not, is there any way I can get <code>integratedSecurity</code> working on Linux?</p>