# JDBC Connection from Linux to SQL Server db

**URL:** <https://discuss.elastic.co/t/jdbc-connection-from-linux-to-sql-server-db/57527>\
**Category:** Logstash\
**Created:** [August 8, 2016, 8:50pm UTC](https://discuss.elastic.co/t/jdbc-connection-from-linux-to-sql-server-db/57527 "2016-08-08T20:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolhypocrisy](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lolhypocrisy](https://discuss.elastic.co/u/lolhypocrisy)\
**Post date:** [August 8, 2016, 8:50pm UTC](https://discuss.elastic.co/t/jdbc-connection-from-linux-to-sql-server-db/57527/1 "2016-08-08T20:50:38Z")

</div>

I'm trying to connect to a SQL Server database using a JDBC connection from Logstash installed on a Linux server. I'm running into issues with the security portion of it. This is my current connection string:

> jdbc\_connection\_string =\> "jdbc:sqlserver://servername:1433;databasename=dbname;integratedSecurity=true;authenticationScheme=JavaKerberos"  
> jdbc\_ucser =\> "user"  
> jdbc\_password =\> "pass"

When I try to run logstash using this, I get a SQLServer error: Integrated authentication failed. I've tried a couple different configurations using/not using integrated, using/not using authenticationScheme, and I can't get it to work at all. Any ideas for me?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:44am UTC](https://discuss.elastic.co/t/jdbc-connection-from-linux-to-sql-server-db/57527/2 "2017-07-06T04:44:19Z")

</div>


