<?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 Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401896#M49033</link>
    <description>&lt;P&gt;I am running a linux server and trying to establish a connection to McAfee with the SQL server using kerberos authentication.  I have downloaded and installed the correct driver and DB connect recognizes the driver.  When trying to create a new connection, I receive the error, "com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed.  ClientConnectionId: blah blah".  When I look through the dbx_server logs, I find the same error as above, but also another log with an error.  The other log states "ClientConnectionId: blah blah cause={} org.ietf.jgss.GSSException: No Valid credentials provided (Mechanism level: Server not found in Kerberos database (7))".  Does anyone know what the issue is that is keeping the linux machine from establishing the connection?&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 14:49:45 GMT</pubDate>
    <dc:creator>chanthongphiob</dc:creator>
    <dc:date>2018-05-17T14:49:45Z</dc:date>
    <item>
      <title>Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401896#M49033</link>
      <description>&lt;P&gt;I am running a linux server and trying to establish a connection to McAfee with the SQL server using kerberos authentication.  I have downloaded and installed the correct driver and DB connect recognizes the driver.  When trying to create a new connection, I receive the error, "com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed.  ClientConnectionId: blah blah".  When I look through the dbx_server logs, I find the same error as above, but also another log with an error.  The other log states "ClientConnectionId: blah blah cause={} org.ietf.jgss.GSSException: No Valid credentials provided (Mechanism level: Server not found in Kerberos database (7))".  Does anyone know what the issue is that is keeping the linux machine from establishing the connection?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 14:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401896#M49033</guid>
      <dc:creator>chanthongphiob</dc:creator>
      <dc:date>2018-05-17T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401897#M49034</link>
      <description>&lt;P&gt;Unix + kerberos in a microsoft active directory environment is tricky.   Typically when you see a "server not found in kerberos database" error, you're trying to invoke-command (via winrm) from one windows machine to another, and your trustedhosts config is too restrictive.  I'm not positive what the equivalent is on unix, but you might try using kinit first to see if you can request a ticket with the account you're using to connect remotely.  That might rule out some problems.  For instance:  kinit &lt;A href="mailto:myuser@MY.DOMAIN.COM"&gt;myuser@MY.DOMAIN.COM&lt;/A&gt;.  If it prompts you for your password, and klist now shows the ticket, things should be in a good state.  If your unix host isn't configured to find the domain controllers, you might be running into issues there.  I have a similar setup but I think my driver is different.  I can confirm after you do some more testing. &lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 03:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401897#M49034</guid>
      <dc:creator>hortonew</dc:creator>
      <dc:date>2018-05-19T03:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401898#M49035</link>
      <description>&lt;P&gt;I was able to perform kinit command and klist provided me a ticket.  I was initially given the wrong Port to connect to.  After the change, the new error stated, "com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:blah".  I thought that since maybe we had a specific instance to connect to, I added "instanceName=myInstance" to the JDBC URL as stated in Splunk Docs.  After this update, I encountered a new error.  The new error stated, "There was an error processing your request. It has been logged (ID blah)."&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401898#M49035</guid>
      <dc:creator>chanthongphiob</dc:creator>
      <dc:date>2018-06-13T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401899#M49036</link>
      <description>&lt;P&gt;Check if below answer helps you:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/664688/splunk-db-connect-3-new-database-connection-to-ms.html#answer-664737"&gt;https://answers.splunk.com/answers/664688/splunk-db-connect-3-new-database-connection-to-ms.html#answer-664737&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 03:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/401899#M49036</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2018-06-14T03:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/610173#M77454</link>
      <description>&lt;P&gt;Did you ever figure this out?&amp;nbsp; I am running into the same problem connecting to a MS SQL server.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 19:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/610173#M77454</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2022-08-19T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/610678#M77468</link>
      <description>&lt;P&gt;For anyone else that may come across this posting, I was able to resolve the issue in my case by setting the MSSQLSvc SPN on the service account used by SQL Server.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 13:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/610678#M77468</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2022-08-24T13:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/624024#M78121</link>
      <description>&lt;P&gt;thank you.&amp;nbsp; how did you do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/624024#M78121</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2022-12-12T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/624159#M78127</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/138520"&gt;@jaxjohnny2000&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Set a service principal name on the user in Active Directory that SQL Server is running as.&lt;BR /&gt;&lt;BR /&gt;For example, if you are&amp;nbsp;&lt;SPAN&gt;trying to connect to the following with DBConnect:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sqlserver1.fqdn.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Add the following service principal name to the user / service account in AD:&lt;BR /&gt;MSSQLSvc/sqlserver1.fqdn.com:1433&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do this in the Active Directory Users and Computers console (on the user's Properties - Attribute Editor tab - set the servicePrincipalName attribute) or by using the setspn command.&lt;/P&gt;&lt;P&gt;Depending on your permissions in AD you may be able to do this yourself or you may need to get someone to do this for you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/624159#M78127</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2022-12-13T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/638920#M78862</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/72044"&gt;@gn694&lt;/a&gt;&amp;nbsp;is this done for the service account that is running the SQL Server service, or for the service account that db_connect is trying to use to connect to MS SQL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll paste this here as well for reference:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/register-a-service-principal-name-for-kerberos-connections?view=sql-server-ver16" target="_blank"&gt;Register a Service Principal Name for Kerberos Connections - SQL Server | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/638920#M78862</guid>
      <dc:creator>splunkyj</dc:creator>
      <dc:date>2023-04-05T22:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my DB Connect not connect to Microsoft SQL Server using Kerberos authentication?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/639025#M78864</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229331"&gt;@splunkyj&lt;/a&gt;&amp;nbsp; You do this for the service account that SQL Server runs as.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-does-my-DB-Connect-not-connect-to-Microsoft-SQL-Server-using/m-p/639025#M78864</guid>
      <dc:creator>gn694</dc:creator>
      <dc:date>2023-04-06T14:01:53Z</dc:date>
    </item>
  </channel>
</rss>

