<?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 Need help connecting SQL Server using Kerberos in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-help-connecting-SQL-Server-using-Kerberos/m-p/2227327#M18971</link>
    <description>&lt;P&gt;My Setup: Using tDBConnection(JDBC) component&lt;/P&gt;
&lt;P&gt;I am trying to connect to a MSSQL server from linux machine using Windows Authentication. I have Kerberos setup on my server and I have a created a valid ticket. I am using the mssql-jdbc driver. I am running RHEL 7.5 and the machine is connected to a windows domain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Job Run JVM arguments&lt;/P&gt;
&lt;P&gt;-Djava.security.krb5.conf=/etc/krb5.conf&lt;/P&gt;
&lt;P&gt;-Djava.security.auth.login.config=/home/USER@DOMAIN/TalendRemoteEngine/etc/SQLJDBCDriver.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQLJDBCDriver.conf&lt;/P&gt;
&lt;PRE&gt;SQLJDBCDriver {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
useKeyTab=true
keyTab=/home/USER@DOMAIN/trsja8.keytab
renewTGT=true
principal=USER@DOMAIN
doNotPrompt=true;
};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Component settings:&lt;/P&gt;
&lt;PRE&gt;JDBC URL -&amp;gt; "jdbc:sqlserver://MYSERVER;databaseName=MYDATABASE;integratedSecurity=true;authenticationScheme=JavaKerberos"&lt;BR /&gt;Driver Class -&amp;gt; ""com.microsoft.sqlserver.jdbc.SQLServerDriver"&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;The error message I get is:&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt;KinitOptions cache name is KEYRING:persistent:274343438
[FATAL]: tDBConnection_2 Integrated authentication failed. ClientConnectionId:c1db7558-d33b-47bc-98a3-91fb3deefae5
java.lang.RuntimeException: Integrated authentication failed. ClientConnectionId:c1db7558-d33b-47bc-98a3-91fb3deefae5&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:47:07 GMT</pubDate>
    <dc:creator>sarora1</dc:creator>
    <dc:date>2024-11-16T04:47:07Z</dc:date>
    <item>
      <title>Need help connecting SQL Server using Kerberos</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-connecting-SQL-Server-using-Kerberos/m-p/2227327#M18971</link>
      <description>&lt;P&gt;My Setup: Using tDBConnection(JDBC) component&lt;/P&gt;
&lt;P&gt;I am trying to connect to a MSSQL server from linux machine using Windows Authentication. I have Kerberos setup on my server and I have a created a valid ticket. I am using the mssql-jdbc driver. I am running RHEL 7.5 and the machine is connected to a windows domain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Job Run JVM arguments&lt;/P&gt;
&lt;P&gt;-Djava.security.krb5.conf=/etc/krb5.conf&lt;/P&gt;
&lt;P&gt;-Djava.security.auth.login.config=/home/USER@DOMAIN/TalendRemoteEngine/etc/SQLJDBCDriver.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQLJDBCDriver.conf&lt;/P&gt;
&lt;PRE&gt;SQLJDBCDriver {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
useKeyTab=true
keyTab=/home/USER@DOMAIN/trsja8.keytab
renewTGT=true
principal=USER@DOMAIN
doNotPrompt=true;
};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Component settings:&lt;/P&gt;
&lt;PRE&gt;JDBC URL -&amp;gt; "jdbc:sqlserver://MYSERVER;databaseName=MYDATABASE;integratedSecurity=true;authenticationScheme=JavaKerberos"&lt;BR /&gt;Driver Class -&amp;gt; ""com.microsoft.sqlserver.jdbc.SQLServerDriver"&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;The error message I get is:&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt;KinitOptions cache name is KEYRING:persistent:274343438
[FATAL]: tDBConnection_2 Integrated authentication failed. ClientConnectionId:c1db7558-d33b-47bc-98a3-91fb3deefae5
java.lang.RuntimeException: Integrated authentication failed. ClientConnectionId:c1db7558-d33b-47bc-98a3-91fb3deefae5&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-connecting-SQL-Server-using-Kerberos/m-p/2227327#M18971</guid>
      <dc:creator>sarora1</dc:creator>
      <dc:date>2024-11-16T04:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help connecting SQL Server using Kerberos</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-connecting-SQL-Server-using-Kerberos/m-p/2227328#M18972</link>
      <description>&lt;P&gt;Answering my own question.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This worked for me with minor modifications:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://jfrog.com/knowledge-base/authenticate-against-your-mssql-endpoint-using-kerberos-with-the-jdbc-driver/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jfrog.com/knowledge-base/authenticate-against-your-mssql-endpoint-using-kerberos-with-the-jdbc-driver/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;SQLJDBCDriver {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
useKeyTab=true
keyTab="path/to/file.keytab" # make sure this is in quotes
renewTGT=true
principal="your_windows_user@your_default_realm" #make sure it is in quotes
doNotPrompt=true;
};&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 21:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-connecting-SQL-Server-using-Kerberos/m-p/2227328#M18972</guid>
      <dc:creator>sarora1</dc:creator>
      <dc:date>2019-09-04T21:20:11Z</dc:date>
    </item>
  </channel>
</rss>

