<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144167#M12641</link>
    <description>&lt;P&gt;What's the domain_name setting for SQL 2008 R2?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2015 11:27:11 GMT</pubDate>
    <dc:creator>virabadrasana</dc:creator>
    <dc:date>2015-08-24T11:27:11Z</dc:date>
    <item>
      <title>How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144158#M12632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to set up DB Connect v2 for reading data from my MS SQL servers. I already have version 1 running and it works perfectly. With version 1 I could use one Active Directory account to connect to all my different SQL instances. This does not seem to work with version 2, it seems with version 2 I can no longer use Windows Authentication with NTLM to connect to a MS SQL server (this is how it worked for version 1 as far as I can tell). &lt;/P&gt;

&lt;P&gt;I define a credential In Splunk DB Connect with username = domain&amp;amp;#92username. I then try to set up a connection using that credential. This does not work, neither with the "Microsoft JDBC Driver for SQL Server" of with the "jTDS driver". With the Microsoft driver I get an error "Login failed for user domain&amp;amp;#92username. Reason: Attempting to use an NT account name with SQL Server Authentication. [CLIENT: x.x.x.x]". So the JDBC driver does not see the domain&amp;amp;#92username as a Windows account but as a SQL account.&lt;/P&gt;

&lt;P&gt;It does work when i use a SQL account, but this is not a preferred solution as it would require me to create SQL accounts for all SQL instances.&lt;/P&gt;

&lt;P&gt;I have looked through any related answer that I could find, but no luck.&lt;/P&gt;

&lt;P&gt;Some help and insight would be appreciated.&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Matthijs&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 07:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144158#M12632</guid>
      <dc:creator>matthijsk</dc:creator>
      <dc:date>2015-04-15T07:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144159#M12633</link>
      <description>&lt;P&gt;I have the same issue. Any advice would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 12:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144159#M12633</guid>
      <dc:creator>ibondarets</dc:creator>
      <dc:date>2015-04-22T12:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144160#M12634</link>
      <description>&lt;P&gt;Having the same issue here as well.  Can confirm the fix below by  lagnone_splunk worked for me.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;update.  As of DBConnect 2.0.4 MSSQL is supported with the MSSQL drivers &lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Troubleshooting#Can.27t_use_Windows_authentication_for_Microsoft_SQL_Server_with_Microsoft_JDBC_Driver_for_SQL_Server"&gt;http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Troubleshooting#Can.27t_use_Windows_authentication_for_Microsoft_SQL_Server_with_Microsoft_JDBC_Driver_for_SQL_Server&lt;/A&gt; &lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 22 Apr 2015 17:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144160#M12634</guid>
      <dc:creator>jhartmann9854</dc:creator>
      <dc:date>2015-04-22T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144161#M12635</link>
      <description>&lt;P&gt;It's a known issue for DBX 2.0&lt;/P&gt;

&lt;P&gt;DBX - 1694﻿: SQL server connection does not work in windows authentication mode&lt;/P&gt;

&lt;P&gt;Try this as a workaround&lt;BR /&gt;
Note - This only works with the JTDS driver, not the generic MSSQL driver&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1. Add the below entries to db_connections.conf(for the particular connection) OR db_connection_types.conf(for the connection type)
jdbcUrlFormat = jdbc:jtds:sqlserver://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;;useCursors=true;domain=&amp;lt;domain_name&amp;gt;;useNTLMv2=true
domain_name = MSSQLSERVER12
2. Change the Username in the identity to have only the username(bamboo) instead of domain-name\username(MSSQLSERVER12\bamboo)
3. Once the above changes are made, validate all flows and make sure they work.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Apr 2015 14:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144161#M12635</guid>
      <dc:creator>lagnone_splunk</dc:creator>
      <dc:date>2015-04-23T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144162#M12636</link>
      <description>&lt;P&gt;Thank you, this works. I hope we can get a solution for the generic MSSQL driver also as according to the documentation this is now the preferred driver.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144162#M12636</guid>
      <dc:creator>matthijsk</dc:creator>
      <dc:date>2015-04-28T12:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144163#M12637</link>
      <description>&lt;P&gt;The db_connection_types.conf didn't work for us. The db_connection_types.conf did, however the  value wasn't being successfully substituted so we had to hardcode the domain value. ie.&lt;/P&gt;

&lt;P&gt;jdbcUrlFormat = jdbc:jtds:sqlserver://:/;useCursors=true;domain=MYORG;useNTLMv2=true&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144163#M12637</guid>
      <dc:creator>splunk-support0</dc:creator>
      <dc:date>2020-09-28T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144164#M12638</link>
      <description>&lt;P&gt;Follow-up question to this:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Does this require running DBConnect on Windows?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 27 May 2015 08:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144164#M12638</guid>
      <dc:creator>laserval</dc:creator>
      <dc:date>2015-05-27T08:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144165#M12639</link>
      <description>&lt;P&gt;It may be that the spaces are required - meaning that domain_name=SQLSERVER doesn't pass but domain_name = SQLSERVER will send domain=SQLSERVER.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144165#M12639</guid>
      <dc:creator>bgstein</dc:creator>
      <dc:date>2020-09-29T06:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144166#M12640</link>
      <description>&lt;P&gt;no this applies to both linux/windows splunk running dbx2&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144166#M12640</guid>
      <dc:creator>mcronkrite</dc:creator>
      <dc:date>2015-07-17T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144167#M12641</link>
      <description>&lt;P&gt;What's the domain_name setting for SQL 2008 R2?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 11:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144167#M12641</guid>
      <dc:creator>virabadrasana</dc:creator>
      <dc:date>2015-08-24T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect Splunk DB Connect 2.x to MS SQL using Windows Authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144168#M12642</link>
      <description>&lt;P&gt;One of my colleagues worked it out.  Here are my notes:&lt;/P&gt;

&lt;P&gt;• In setting for the app (DB Connect v2), use the Java8 JDK not JRE.&lt;BR /&gt;
• Make sure ‘jtds-1.3.1.jar’ is in &lt;DB_CONNECT_HOME&gt;\bin\lib directory.&lt;BR /&gt;
• The following stanza should reside in &lt;DB_CONNECT_HOME&gt;\local\db_connection_types only once:&lt;/DB_CONNECT_HOME&gt;&lt;/DB_CONNECT_HOME&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mssql]
displayName = MS-SQL Server Using jTDS Driver
serviceClass = com.splunk.dbx2.MSSQLJtdsJDBC
jdbcDriverClass = net.sourceforge.jtds.jdbc.Driver
jdbcUrlFormat = jdbc:jtds:sqlserver://:/;useCursors=true
#jdbcUrlFormat = jdbc:sqlserver://:;databaseName=;selectMethod=cursor;integratedSecurity=true
#jdbcUrlFormat = jdbc:jtds:sqlserver://:/;useCursors=true;domain=;useNTLMv2=true
#jdbcUrlFormat = jdbc:jtds:sqlserver://:/;useCursors=true;useNTLMv2=true
# seems this driver cannot use pooled datasource.
useConnectionPool = false
testQuery = SELECT 1

[generic_mssql]
useConnectionPool = false
displayName = MS-SQL Server Using MS Generic Driver
serviceClass = com.splunk.dbx2.MSSQLJDBC
jdbcDriverClass = com.microsoft.sqlserver.jdbc.SQLServerDriver
#jdbcUrlSSLFormat = jdbc:sqlserver://:;databaseName=;selectMethod=cursor;encrypt=true;trustServerCertificate=true
#jdbcUrlFormat = jdbc:sqlserver://:;databaseName=;selectMethod=cursor
#jdbcUrlFormat = jdbc:sqlserver://:;databaseName=;selectMethod=cursor;integratedSecurity=true
jdbcUrlFormat = jdbc:jtds:sqlserver://:/;useCursors=true;domain=;useNTLMv2=true
port = 1433
testQuery = SELECT 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-Splunk-DB-Connect-2-x-to-MS-SQL-using-Windows/m-p/144168#M12642</guid>
      <dc:creator>romantic_warrio</dc:creator>
      <dc:date>2020-09-29T10:51:35Z</dc:date>
    </item>
  </channel>
</rss>

