How To Connect to SQL Server On-Premise/Virtual Machine from Linux using Kerberos Authentication

Published Mar 26 2021 07:47 AM 1,695 Views
Microsoft

 

Hi! 

It is known that SQL Server can be accessed with many different authentication methods. We often recommend the use of Integrated Security using Kerberos mainly because it allows delegated authentication, besides being an efficient method compared to others such as NTLM, for example.

 

On today's post we will be following the steps to help you configuring Kerberos on Linux and test it by connecting to a SQL Server instance found On-Premise/Virtual Machine .

 

The steps will be covered in the following sections:

 

  1.  Joining the Linux Server to the Windows Domain
  2. Setting Kerberos on Linux
  3. Testing the connection
  4. Troubleshooting

 

 

1 - Joining the Server to the Windows Domain:

 

To join Linux server into a Windows Domain it is needed to change the network device to look for the right DNS entries.

This can be done by editing the files /etc/network/interfaces on Ubuntu versions < 18 or /etc/netplan/******.yaml on newer Ubuntu

 

Ubuntu 16: Join SQL Server on Linux to Active Directory - SQL Server | Microsoft Docs

Ubuntu 18: Join SQL Server on Linux to Active Directory - SQL Server | Microsoft Docs

Red Hat 7.x: Join SQL Server on Linux to Active Directory - SQL Server | Microsoft Docs

Suse 12: Join SQL Server on Linux to Active Directory - SQL Server | Microsoft Docs

 

The final files may vary depending on the distro. As an example, this is the outcome for Ubuntu 18 (available on Azure):

 

Test environment:

Domain Name: BORBA.LOCAL

Domain Controller (BORBADC.borba.local) IP: 10.0.1.4

 

File /etc/netplan/50-cloud-init.yaml :

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        eth0:
            dhcp4: true
            dhcp4-overrides:
                route-metric: 100
            dhcp6: false
            match:
                driver: hv_netvsc
                macaddress: 00:0d:3a:da:4d:53
            set-name: eth0
            nameservers:
                addresses: [10.0.1.4]
    version: 2

 

As soon as you change the yaml file under /etc/netplan you will need to apply the same by running the following command-line:

netplan apply

 

You will also need to add your DNS to /etc/resolv.conf:

File /etc/resolv.conf:

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 10.0.1.4
options edns0
search borba.local

 

Now that your DNS settings are properly set, you can test it by running a nslookup with the domain controller as parameter. On my environment the domain controller is called "BORBADC". Check the output from nslookup command below:

 

Testing name resolution with the command "nslookup borbadc.borba.local":

dineu@LinuxDev:~$ nslookup borbadc
Server:         10.0.1.4
Address:        10.0.1.4#53

Name:   borbadc.borba.local
Address: 10.0.1.4

 

You've just finished the first part :grinning_face:

As we could see, nslookup is correctly resolving the names for the realm BORBA.LOCAL.

 

 

2- Setting Kerberos on Linux:

 

Now that your Linux server is joined to the Windows Active Directory, we will now continue configuring settings for Kerberos.

The process goes through two simple steps:

 

  • Installing the required libraries
  • Adapting Kerberos Configuration file.

 

2.1) Installing the required libraries:

As usual, the command lines may vary depending on what is you Linux distro. I will be sharing two solutions that can be used if your Linux is Ubuntu or Red Hat.

 

Ubuntu:

sudo apt-get install realmd krb5-user

RedHat:

sudo yum install realmd krb5-workstation

Once the libraries are installed, you can move on to the next step.

 

2.2) Adapting Kerberos Configuration File

The whole settings for Kerberos are defined in one single file called "krb5.conf".

This is found under /etc/krb5.conf and you will need to adapt the following sections:

  • [libdefaults]
  • [realms]
  • [domain_realm]

As an example, please check the final version of my krb5.conf used to configure the settings in the same Test Environment:

[libdefaults]
        default_realm = BORBA.LOCAL
        dns_lookup_kdc = true
        dns_lookup_realm = true
# The following krb5.conf variables are only for MIT Kerberos.
        kdc_timesync = 1
        ccache_type = 4
        forwardable = true
        proxiable = true

[realms]
        BORBA.LOCAL = {
                kdc = BORBADC.BORBA.LOCAL
                admin_server = BORBADC.BORBA.LOCAL
        }

[domain_realm]
        .borba.local = BORBA.LOCAL

 

 

 

3- Testing the connection

 

Ok, so you have the server joined to the domain and also finished configuring the Krb5.conf. 

As you know, Kerberos relies on a ticket-granting service and you will need to have this first ticket (TGT) if you want to connect to any service using your credentials.

 

This process responsible for asking and receiving the TGT is called "kinit".

Once you get the TGT, other processes (such as your application that connects to SQL Server) will be able to ask another ticket called Ticket-Granting-Service (TGS).

 

1.1) Get Ticket-Granting Ticket

 

To test the connection on Linux you will first need to get a TGT (Ticket-Granting-Ticket). This is done throgh the command kinit as follow:

 

kinit username@DOMAIN.COMPANY.COM

*** Please notice that realm is in capital letters

 

In our example, this was the output:

dineu@LinuxDev:~$ kinit dineu@BORBA.LOCAL
Password for dineu@BORBA.LOCAL:
dineu@LinuxDev:~$

You can see the ticket received by running the command "klist" (see the krbtgt in the output):

aa
dineu@LinuxDev:~/JavaTest$ klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: dineu@BORBA.LOCAL
Valid starting Expires Service principal
03/26/21 13:02:41 03/26/21 23:02:41 krbtgt/BORBA.LOCAL@BORBA.LOCAL
renew until 03/27/21 13:02:38

 

1.2) Connect to SQL Server

Brillant! 

I see you already have a TGT from the output of your klist. Now it is time to test our connection to SQL Server.

 

1.2.1) Testing the connection using sqlcmd:

To test the connection using SQLCMD you will first need to install it:

Once the tool is installed, you can can connect to one of your SQL Instances as below:

aa
dineu@LinuxDev:~$ sqlcmd -S MySQLInstance.borba.local -E
1> SELECT auth_scheme from sys.dm_exec_connections where session_id = @@SPID;
2> GO
auth_scheme
----------------------------------------
KERBEROS
(1 rows affected)

 

1.2.2) Testing the connection using Microsoft JDBC (MS-JDBC):

 

To test the connection using Microsoft JDBC please ensure you have the latest JRE and JDK properly installed on your server

  • Please check the steps 1.2 and 1.3 of the following article:

https://sqlchoice.azurewebsites.net/en-us/sql-server/developer-get-started/java/ubuntu/

 

1.2.2.1) Create / Compile you Java file to test the connection:

 

Connection String used as an example:

jdbc:sqlserver://MySQLInstance.borba.local:1433;databaseName=master;integratedSecurity=true;authenticationScheme=JavaKerberos

And this is our sample script (found as a sample code when you install MS-JDBC) adapted with the connection string that will ensure Kerberos is used:

 

File ConnectUrl.java:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class ConnectURL {
    public static void main(String[] args) {
        // Create a variable for the connection string.
        String connectionUrl = "jdbc:sqlserver://MySqlInstance.borba.local:1433;databaseName=master;integratedSecurity=true;authenticationScheme=JavaKerberos";

        try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();) {
            String SQL = "SELECT auth_sceme from sys.dm_exec_connections where session_id = @@SPID";
            ResultSet rs = stmt.executeQuery(SQL);

            // Iterate through the data in the result set and display it.
            while (rs.next()) {
                System.out.println(rs.getString("auth_scheme"));
            }
        }
        // Handle any errors that may have occurred.
        catch (SQLException e) {
            e.printStackTrace();
        }
    }
}

 

Compile the script by running the command below:

javac ConnectURL.java

 

Finally, you can now call java to execute the script (don't forget to inform the path for the MSJDBC jar files):

java -cp .:/home/dineu/JavaTest/mssql-jdbc-8.4.0.jre8.jar ConnectURL


Output: If the settings were properly configured, you will find the following output:

KERBEROS

 

...and this is Done! If you found Kerberos as the output of the execution, you've finished to configure Kerberosn on your Linux Environment.

 

 

4 - Troubleshooting

Okay, we know sometimes things may behave in an unexpected way. I would like to share here some error messages that you may find and also some suggestions on how to collect more information if you get stuck anywhere while configuring all these settings.

 

4.1) Error Messages

Please find below some error messages that you may find along this journey:

 

Error #1) kinit: Cannot find KDC for realm "borba.local" while getting initial credentials

- Check if the name of your realm is being correctly resolved:

- You can find the IP Address of your DNS under /etc/resolv.conf

- You can also test it by running the nslookup: nslookup YourDomain or nslookup YourDomainController

 

Error #2) kinit: KDC reply did not match expectations while getting initial credentials

This message says the kinit failed to get the TGT. Possible reasons are:

- Realm was not in capital letters. Example: (wrong) kinit myuser@domain.com versus (right) kinit myuser@DOMAIN.COM.

- Krb5.conf was not properly configured (please review the sections [libdefaults], [realms] and [domain_realm] under /etc/krb5.conf

 

Error #3) Cannot generate SSPI context.

Usually the error message "Cannot Generate SSPI Context" comes with some other error messages, just like below:

 

Testing from SQLCMD:

dineu@LinuxDev:~/JavaTest$ sqlcmd -S sqlao1 -E
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SSPI Provider: Server not found in Kerberos database.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Cannot generate SSPI context.

 

Testing from MS-JDBC:

aa
com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:....
Caused by: GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7)
Caused by: KrbException: Server not found in Kerberos database (7)
Caused by: KrbException: Identifier doesn't match expected value (906)

In this case, it is clearly saying that the SPN was not found.

Therefore you can check if the SPNs for SQL Service are properly registered to the SQL Service Account.

More info: Register a Service Principal Name for Kerberos Connections 

 

4.2) Logs

If you find an unexpected error, the following logs can help to understand what could be causing the problem.

 

4.2.1) Provider Logs:

You can always collect provider logs from ODBC or MSJDBC.

 

4.2.2) Network Traces:

You may consider to use a network capture tool (such as tcpdump) on Linux and then filter by the Kerberos messages.

The following command line will start a circular capture in the server. It will create up to 10 files, each one containing the maximum size of 2Gb

sudo tcpdump -i any -w /var/tmp/trace -W 10 -C 2000 -K -n

Once you start capturing the traces, reproduce the issue and then press Ctrl+C to stop capturing them.

The files would be stored in the same folder used in the command line (in this case, /var/tmp).

 

 

...and that's all folks! 

I would love to hear your feedback..!

Did you find the steps described in this article helpful?

What else would you like to have added to this post? 


We hope you have enjoyed reading about this content.

See you in the next post!

%3CLINGO-SUB%20id%3D%22lingo-sub-2237855%22%20slang%3D%22en-US%22%3EHow%20To%20Connect%20to%20SQL%20Server%20On-Premise%2FVirtual%20Machine%20from%20Linux%20using%20Kerberos%20Authentication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2237855%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi!%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIt%20is%20known%20that%20SQL%20Server%20can%20be%20accessed%20with%20many%20different%20authentication%20methods.%20We%20often%20recommend%20the%20use%20of%20Integrated%20Security%20using%20Kerberos%20mainly%20because%20it%20allows%20delegated%20authentication%2C%20besides%20being%20an%20efficient%20method%20compared%20to%20others%20such%20as%20NTLM%2C%20for%20example.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EOn%20today's%20post%3C%2FSTRONG%3E%20we%20will%20be%20following%20the%20steps%20to%20help%20you%20configuring%20Kerberos%20on%20Linux%20and%20test%20it%20by%20connecting%20to%20a%20SQL%20Server%20instance%20found%20On-Premise%2FVirtual%20Machine%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20steps%20will%20be%20covered%20in%20the%20following%20sections%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3E%26nbsp%3BJoining%20the%20Linux%20Server%20to%20the%20Windows%20Domain%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESetting%20Kerberos%20on%20Linux%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ETesting%20the%20connection%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ETroubleshooting%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22JoinWindowsDomain%22%20id%3D%22toc-hId--497346510%22%20id%3D%22toc-hId--497346576%22%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3E1%20-%20Joining%20the%20Server%20to%20the%20Windows%20Domain%3A%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3ETo%20join%20Linux%20server%20into%20a%20Windows%20Domain%20it%20is%20needed%20to%20change%20the%20network%20device%20to%20look%20for%20the%20right%20DNS%20entries.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThis%20can%20be%20done%20by%20editing%20the%20files%20%3CSTRONG%3E%2Fetc%2Fnetwork%2Finterfaces%3C%2FSTRONG%3E%20on%20Ubuntu%20versions%20%26lt%3B%2018%20or%20%2Fetc%2Fnetplan%2F******.yaml%20on%20newer%20Ubuntu%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EUbuntu%2016%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Flinux%2Fsql-server-linux-active-directory-join-domain%3Fview%3Dsql-server-ver15%23ubuntu-1604%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJoin%20SQL%20Server%20on%20Linux%20to%20Active%20Directory%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EUbuntu%2018%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Flinux%2Fsql-server-linux-active-directory-join-domain%3Fview%3Dsql-server-ver15%23ubuntu-1804%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJoin%20SQL%20Server%20on%20Linux%20to%20Active%20Directory%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ERed%20Hat%207.x%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Flinux%2Fsql-server-linux-active-directory-join-domain%3Fview%3Dsql-server-ver15%23rhel-7x%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJoin%20SQL%20Server%20on%20Linux%20to%20Active%20Directory%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESuse%2012%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Flinux%2Fsql-server-linux-active-directory-join-domain%3Fview%3Dsql-server-ver15%23sles-12%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJoin%20SQL%20Server%20on%20Linux%20to%20Active%20Directory%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20final%20files%20may%20vary%20depending%20on%20the%20distro.%20As%20an%20example%2C%20this%20is%20the%20outcome%20for%20Ubuntu%2018%20(available%20on%20Azure)%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CU%3E%3CSTRONG%3ETest%20environment%3A%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EDomain%20Name%3A%3C%2FSTRONG%3E%20BORBA.LOCAL%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EDomain%20Controller%20(BORBADC.borba.local)%20IP%3A%3C%2FSTRONG%3E%2010.0.1.4%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EFile%20%2Fetc%2Fnetplan%2F50-cloud-init.yaml%20%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-90px%22%3E%3CFONT%20size%3D%222%22%3E%23%20This%20file%20is%20generated%20from%20information%20provided%20by%20the%20datasource.%26nbsp%3B%20Changes%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%23%20to%20it%20will%20not%20persist%20across%20an%20instance%20reboot.%26nbsp%3B%20To%20disable%20cloud-init's%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%23%20network%20configuration%20capabilities%2C%20write%20a%20file%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%23%20%2Fetc%2Fcloud%2Fcloud.cfg.d%2F99-disable-network-config.cfg%20with%20the%20following%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%23%20network%3A%20%7Bconfig%3A%20disabled%7D%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3Enetwork%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ethernets%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20eth0%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dhcp4%3A%20true%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dhcp4-overrides%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20route-metric%3A%20100%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dhcp6%3A%20false%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20match%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20driver%3A%20hv_netvsc%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20macaddress%3A%2000%3A0d%3A3a%3Ada%3A4d%3A53%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20set-name%3A%20eth0%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20nameservers%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20addresses%3A%20%5B10.0.1.4%5D%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20version%3A%202%3C%2FFONT%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAs%20soon%20as%20you%20change%20the%20yaml%20file%20under%20%2Fetc%2Fnetplan%20you%20will%20need%20to%20apply%20the%20same%20by%20running%20the%20following%20command-line%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Enetplan%20apply%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20will%20also%20need%20to%20add%20your%20DNS%20to%20%2Fetc%2Fresolv.conf%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EFile%20%2Fetc%2Fresolv.conf%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%3E%23%20This%20file%20is%20managed%20by%20man%3Asystemd-resolved(8).%20Do%20not%20edit.%3CBR%20%2F%3E%23%3CBR%20%2F%3E%23%20This%20is%20a%20dynamic%20resolv.conf%20file%20for%20connecting%20local%20clients%20to%20the%3CBR%20%2F%3E%23%20internal%20DNS%20stub%20resolver%20of%20systemd-resolved.%20This%20file%20lists%20all%3CBR%20%2F%3E%23%20configured%20search%20domains.%3CBR%20%2F%3E%23%3CBR%20%2F%3E%23%20Run%20%22systemd-resolve%20--status%22%20to%20see%20details%20about%20the%20uplink%20DNS%20servers%3CBR%20%2F%3E%23%20currently%20in%20use.%3CBR%20%2F%3E%23%3CBR%20%2F%3E%23%20Third%20party%20programs%20must%20not%20access%20this%20file%20directly%2C%20but%20only%20through%20the%3CBR%20%2F%3E%23%20symlink%20at%20%2Fetc%2Fresolv.conf.%20To%20manage%20man%3Aresolv.conf(5)%20in%20a%20different%20way%2C%3CBR%20%2F%3E%23%20replace%20this%20symlink%20by%20a%20static%20file%20or%20a%20different%20symlink.%3CBR%20%2F%3E%23%3CBR%20%2F%3E%23%20See%20man%3Asystemd-resolved.service(8)%20for%20details%20about%20the%20supported%20modes%20of%3CBR%20%2F%3E%23%20operation%20for%20%2Fetc%2Fresolv.conf.%3CBR%20%2F%3Enameserver%2010.0.1.4%3CBR%20%2F%3Eoptions%20edns0%3CBR%20%2F%3Esearch%20borba.local%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ENow%20that%20your%20DNS%20settings%20are%20properly%20set%2C%20you%20can%20test%20it%20by%20running%20a%20nslookup%20with%20the%20domain%20controller%20as%20parameter.%20On%20my%20environment%20the%20domain%20controller%20is%20called%20%22BORBADC%22.%20Check%20the%20output%20from%20nslookup%20command%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ETesting%20name%20resolution%20with%20the%20command%20%22nslookup%20borbadc.borba.local%22%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%3Edineu%40LinuxDev%3A~%24%20nslookup%20borbadc%3CBR%20%2F%3EServer%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.0.1.4%3CBR%20%2F%3EAddress%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.0.1.4%2353%3CBR%20%2F%3E%3CBR%20%2F%3EName%3A%26nbsp%3B%26nbsp%3B%20borbadc.borba.local%3CBR%20%2F%3EAddress%3A%2010.0.1.4%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou've%20just%20finished%20the%20first%20part%20%3Agrinning_face%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAs%20we%20could%20see%2C%20nslookup%20is%20correctly%20resolving%20the%20names%20for%20the%20realm%20BORBA.LOCAL.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1990166323%22%20id%3D%22toc-hId-1990166257%22%3E%3CSTRONG%3E2-%20Setting%20Kerberos%20on%20Linux%3A%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3ENow%20that%20your%20Linux%20server%20is%20joined%20to%20the%20Windows%20Active%20Directory%2C%20we%20will%20now%20continue%20configuring%20settings%20for%20Kerberos.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20process%20goes%20through%20two%20simple%20steps%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EInstalling%20the%20required%20libraries%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAdapting%20Kerberos%20Configuration%20file%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1614239499%22%20id%3D%22toc-hId--1614239565%22%3E%3CSTRONG%3E2.1)%20Installing%20the%20required%20libraries%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAs%20usual%2C%20the%20command%20lines%20may%20vary%20depending%20on%20what%20is%20you%20Linux%20distro.%20I%20will%20be%20sharing%20two%20solutions%20that%20can%20be%20used%20if%20your%20Linux%20is%20Ubuntu%20or%20Red%20Hat.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EUbuntu%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Esudo%20apt-get%20install%20realmd%20krb5-user%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ERedHat%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Esudo%20yum%20install%20realmd%20krb5-workstation%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EOnce%20the%20libraries%20are%20installed%2C%20you%20can%20move%20on%20to%20the%20next%20step.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-873273334%22%20id%3D%22toc-hId-873273268%22%3E%3CSTRONG%3E2.2)%20Adapting%20Kerberos%20Configuration%20File%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20whole%20settings%20for%20Kerberos%20are%20defined%20in%20one%20single%20file%20called%20%22krb5.conf%22.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThis%20is%20found%20under%20%2Fetc%2Fkrb5.conf%20and%20you%20will%20need%20to%20adapt%20the%20following%20sections%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%5Blibdefaults%5D%3C%2FLI%3E%0A%3CLI%3E%5Brealms%5D%3C%2FLI%3E%0A%3CLI%3E%5Bdomain_realm%5D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAs%20an%20example%2C%20please%20check%20the%20final%20version%20of%20my%20krb5.conf%20used%20to%20configure%20the%20settings%20in%20the%20same%20Test%20Environment%3A%3C%2FP%3E%0A%3CPRE%3E%5Blibdefaults%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20default_realm%20%3D%20BORBA.LOCAL%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dns_lookup_kdc%20%3D%20true%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dns_lookup_realm%20%3D%20true%3CBR%20%2F%3E%23%20The%20following%20krb5.conf%20variables%20are%20only%20for%20MIT%20Kerberos.%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20kdc_timesync%20%3D%201%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ccache_type%20%3D%204%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20forwardable%20%3D%20true%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20proxiable%20%3D%20true%3CBR%20%2F%3E%3CBR%20%2F%3E%5Brealms%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20BORBA.LOCAL%20%3D%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20kdc%20%3D%20BORBADC.BORBA.LOCAL%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20admin_server%20%3D%20BORBADC.BORBA.LOCAL%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%5Bdomain_realm%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20.borba.local%20%3D%20BORBA.LOCAL%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-862770230%22%20id%3D%22toc-hId-862770164%22%3E%3CSTRONG%3E3-%20Testing%20the%20connection%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3EOk%2C%20so%20you%20have%20the%20server%20joined%20to%20the%20domain%20and%20also%20finished%20configuring%20the%20Krb5.conf.%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAs%20you%20know%2C%20Kerberos%20relies%20on%20a%20ticket-granting%20service%20and%20you%20will%20need%20to%20have%20this%20first%20ticket%20(TGT)%20if%20you%20want%20to%20connect%20to%20any%20service%20using%20your%20credentials.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThis%20process%20responsible%20for%20asking%20and%20receiving%20the%20TGT%20is%20called%20%22kinit%22.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EOnce%20you%20get%20the%20TGT%2C%20other%20processes%20(such%20as%20your%20application%20that%20connects%20to%20SQL%20Server)%20will%20be%20able%20to%20ask%20another%20ticket%20called%20Ticket-Granting-Service%20(TGS).%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1553331704%22%20id%3D%22toc-hId-1553331638%22%3E%3CSTRONG%3E1.1)%20Get%20Ticket-Granting%20Ticket%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ETo%20test%20the%20connection%20on%20Linux%20you%20will%20first%20need%20to%20get%20a%20TGT%20(Ticket-Granting-Ticket).%20This%20is%20done%20throgh%20the%20command%20kinit%20as%20follow%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Ekinit%20username%40DOMAIN.COMPANY.COM%3C%2FPRE%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23FF0000%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E***%20Please%20notice%20that%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3E%3CI%3Erealm%3C%2FI%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%20is%20in%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Ecapital%20letters%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20example%2C%20this%20was%20the%20output%3A%3C%2FP%3E%0A%3CPRE%3Edineu%40LinuxDev%3A~%24%20kinit%20%3CA%20href%3D%22mailto%3Adineu%40BORBA.LOCAL%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Edineu%40BORBA.LOCAL%3C%2FA%3E%3CBR%20%2F%3EPassword%20for%20%3CA%20href%3D%22mailto%3Adineu%40BORBA.LOCAL%3A%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Edineu%40BORBA.LOCAL%3A%3C%2FA%3E%3CBR%20%2F%3Edineu%40LinuxDev%3A~%24%3C%2FPRE%3E%0A%3CP%3EYou%20can%20see%20the%20ticket%20received%20by%20running%20the%20command%20%22klist%22%20(see%20the%20krbtgt%20in%20the%20output)%3A%3C%2FP%3E%0A%3CPRE%3Eaa%3CBR%20%2F%3Edineu%40LinuxDev%3A~%2FJavaTest%24%20klist%3CBR%20%2F%3ETicket%20cache%3A%20FILE%3A%2Ftmp%2Fkrb5cc_1000%3CBR%20%2F%3EDefault%20principal%3A%20%3CA%20href%3D%22mailto%3Adineu%40BORBA.LOCAL%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Edineu%40BORBA.LOCAL%3C%2FA%3E%3CBR%20%2F%3EValid%20starting%20Expires%20Service%20principal%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF6600%22%3E03%2F26%2F21%2013%3A02%3A41%2003%2F26%2F21%2023%3A02%3A41%20krbtgt%2FBORBA.LOCAL%40BORBA.LOCAL%3C%2FFONT%3E%3CBR%20%2F%3Erenew%20until%2003%2F27%2F21%2013%3A02%3A38%3C%2FPRE%3E%0A%3CH3%20id%3D%22toc-hId--254122759%22%20id%3D%22toc-hId--254122825%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--2061577222%22%20id%3D%22toc-hId--2061577288%22%3E%3CSTRONG%3E1.2)%20Connect%20to%20SQL%20Server%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EBrillant!%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EI%20see%20you%20already%20have%20a%20TGT%20from%20the%20output%20of%20your%20klist.%20Now%20it%20is%20time%20to%20test%20our%20connection%20to%20SQL%20Server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1371015748%22%20id%3D%22toc-hId--1371015814%22%3E%3CSTRONG%3E1.2.1)%20Testing%20the%20connection%20using%20sqlcmd%3A%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ETo%20test%20the%20connection%20using%20SQLCMD%20you%20will%20first%20need%20to%20install%20it%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Flinux%2Fsql-server-linux-setup-tools%3Fview%3Dsql-server-ver15%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EInstall%20SQL%20Server%20command-line%20tools%20on%20Linux%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EOnce%20the%20tool%20is%20installed%2C%20you%20can%20can%20connect%20to%20one%20of%20your%20SQL%20Instances%20as%20below%3A%3C%2FP%3E%0A%3CPRE%3Eaa%3CBR%20%2F%3Edineu%40LinuxDev%3A~%24%20sqlcmd%20-S%20MySQLInstance.borba.local%20-E%3CBR%20%2F%3E1%26gt%3B%20SELECT%20auth_scheme%20from%20sys.dm_exec_connections%20where%20session_id%20%3D%20%40%40SPID%3B%3CBR%20%2F%3E2%26gt%3B%20GO%3CBR%20%2F%3Eauth_scheme%3CBR%20%2F%3E----------------------------------------%3CBR%20%2F%3EKERBEROS%3CBR%20%2F%3E(1%20rows%20affected)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1381518852%22%20id%3D%22toc-hId--1381518918%22%3E%3CSTRONG%3E1.2.2)%20Testing%20the%20connection%20using%20Microsoft%20JDBC%20(MS-JDBC)%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ETo%20test%20the%20connection%20using%20Microsoft%20JDBC%20please%20ensure%20you%20have%20the%20latest%20JRE%20and%20JDK%20properly%20installed%20on%20your%20server%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EPlease%20check%20the%3CSTRONG%3E%20steps%201.2%20and%201.3%3C%2FSTRONG%3E%20of%20the%20following%20article%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Fsqlchoice.azurewebsites.net%2Fen-us%2Fsql-server%2Fdeveloper-get-started%2Fjava%2Fubuntu%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsqlchoice.azurewebsites.net%2Fen-us%2Fsql-server%2Fdeveloper-get-started%2Fjava%2Fubuntu%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-539913221%22%20id%3D%22toc-hId-539913155%22%3E%3CSTRONG%3E1.2.2.1)%20Create%20%2F%20Compile%20you%20Java%20file%20to%20test%20the%20connection%3A%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EConnection%20String%20used%20as%20an%20example%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3Ejdbc%3Asqlserver%3A%2F%2FMySQLInstance.borba.local%3A1433%3BdatabaseName%3Dmaster%3B%3CFONT%20color%3D%22%23FF6600%22%3EintegratedSecurity%3Dtrue%3BauthenticationScheme%3DJavaKerberos%3C%2FFONT%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAnd%20this%20is%20our%20sample%20script%20(found%20as%20a%20sample%20code%20when%20you%20install%20MS-JDBC)%20adapted%20with%20the%20connection%20string%20that%20will%20ensure%20Kerberos%20is%20used%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EFile%20ConnectUrl.java%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Eimport%20java.sql.Connection%3B%3CBR%20%2F%3Eimport%20java.sql.DriverManager%3B%3CBR%20%2F%3Eimport%20java.sql.ResultSet%3B%3CBR%20%2F%3Eimport%20java.sql.SQLException%3B%3CBR%20%2F%3Eimport%20java.sql.Statement%3B%3CBR%20%2F%3E%3CBR%20%2F%3Epublic%20class%20ConnectURL%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20public%20static%20void%20main(String%5B%5D%20args)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2F%20Create%20a%20variable%20for%20the%20connection%20string.%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20String%20connectionUrl%20%3D%20%22jdbc%3Asqlserver%3A%2F%2FMySqlInstance.borba.local%3A1433%3BdatabaseName%3Dmaster%3BintegratedSecurity%3Dtrue%3BauthenticationScheme%3DJavaKerberos%22%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20try%20(Connection%20con%20%3D%20DriverManager.getConnection(connectionUrl)%3B%20Statement%20stmt%20%3D%20con.createStatement()%3B)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20String%20SQL%20%3D%20%22SELECT%20auth_sceme%20from%20sys.dm_exec_connections%20where%20session_id%20%3D%20%40%40SPID%22%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ResultSet%20rs%20%3D%20stmt.executeQuery(SQL)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2F%20Iterate%20through%20the%20data%20in%20the%20result%20set%20and%20display%20it.%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20while%20(rs.next())%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20System.out.println(rs.getString(%22auth_scheme%22))%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2F%20Handle%20any%20errors%20that%20may%20have%20occurred.%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20catch%20(SQLException%20e)%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20e.printStackTrace()%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%7D%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ECompile%20the%20script%20by%20running%20the%20command%20below%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Ejavac%20ConnectURL.java%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EFinally%2C%20you%20can%20now%20call%20java%20to%20execute%20the%20script%20(don't%20forget%20to%20inform%20the%20path%20for%20the%20MSJDBC%20jar%20files)%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Ejava%20-cp%20.%3A%2Fhome%2Fdineu%2FJavaTest%2Fmssql-jdbc-8.4.0.jre8.jar%20ConnectURL%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%3CBR%20%2F%3E%3CSTRONG%3EOutput%3A%3C%2FSTRONG%3E%20If%20the%20settings%20were%20properly%20configured%2C%20you%20will%20find%20the%20following%20output%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EKERBEROS%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E...and%20this%20is%20Done!%20If%20you%20found%20Kerberos%20as%20the%20output%20of%20the%20execution%2C%20you've%20finished%20to%20configure%20Kerberosn%20on%20your%20Linux%20Environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1525706680%22%20id%3D%22toc-hId--1525706746%22%3E%3CSTRONG%3E4%20-%20Troubleshooting%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3EOkay%2C%20we%20know%20sometimes%20things%20may%20behave%20in%20an%20unexpected%20way.%20I%20would%20like%20to%20share%20here%20some%20error%20messages%20that%20you%20may%20find%20and%20also%20some%20suggestions%20on%20how%20to%20collect%20more%20information%20if%20you%20get%20stuck%20anywhere%20while%20configuring%20all%20these%20settings.%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1090888872%22%20id%3D%22toc-hId-1090888806%22%3E%3CSTRONG%3E4.1)%20Error%20Messages%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EPlease%20find%20below%20some%20error%20messages%20that%20you%20may%20find%20along%20this%20journey%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-60px%22%20id%3D%22toc-hId--587482872%22%20id%3D%22toc-hId--587482938%22%3E%3CSTRONG%3EError%20%231)%20kinit%3A%20Cannot%20find%20KDC%20for%20realm%20%22borba.local%22%20while%20getting%20initial%20credentials%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E-%20Check%20if%20the%20name%20of%20your%20realm%20is%20being%20correctly%20resolved%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E-%20You%20can%20find%20the%20IP%20Address%20of%20your%20DNS%20under%20%2Fetc%2Fresolv.conf%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E-%20You%20can%20also%20test%20it%20by%20running%20the%20nslookup%3A%20%3CSTRONG%3Enslookup%20YourDomain%20%3C%2FSTRONG%3Eor%20%3CSTRONG%3Enslookup%20YourDomainController%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-60px%22%20id%3D%22toc-hId-1900029961%22%20id%3D%22toc-hId-1900029895%22%3E%3CSTRONG%3EError%20%232)%20kinit%3A%20KDC%20reply%20did%20not%20match%20expectations%20while%20getting%20initial%20credentials%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EThis%20message%20says%20the%20kinit%20failed%20to%20get%20the%20TGT.%20Possible%20reasons%20are%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E-%20Realm%20was%20not%20in%20capital%20letters.%20Example%3A%20(wrong)%26nbsp%3B%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3E%3CI%3Ekinit%20myuser%40domain.com%3C%2FI%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%20versus%20(right)%26nbsp%3B%3CFONT%20color%3D%22%23339966%22%3E%3CSTRONG%3E%3CI%3Ekinit%20myuser%40DOMAIN.COM%3C%2FI%3E%3C%2FSTRONG%3E.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E-%20%3CSTRONG%3EKrb5.conf%3C%2FSTRONG%3E%20was%20not%20properly%20configured%20(please%20review%20the%20sections%3CSTRONG%3E%20%5Blibdefaults%5D%3C%2FSTRONG%3E%2C%3CSTRONG%3E%20%5Brealms%5D%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%5Bdomain_realm%5D%3C%2FSTRONG%3E%20under%20%2Fetc%2Fkrb5.conf%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-60px%22%20id%3D%22toc-hId--36507221%22%20id%3D%22toc-hId--36507287%22%3E%3CSTRONG%3EError%20%233)%20Cannot%20generate%20SSPI%20context.%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EUsually%20the%20error%20message%20%22Cannot%20Generate%20SSPI%20Context%22%20comes%20with%20some%20other%20error%20messages%2C%20just%20like%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CSTRONG%3ETesting%20from%20SQLCMD%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-90px%22%3Edineu%40LinuxDev%3A~%2FJavaTest%24%20sqlcmd%20-S%20sqlao1%20-E%3CBR%20%2F%3ESqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20SSPI%20Provider%3A%20Server%20not%20found%20in%20Kerberos%20database.%3CBR%20%2F%3ESqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20Cannot%20generate%20SSPI%20context.%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CSTRONG%3ETesting%20from%20MS-JDBC%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-90px%22%3E%3CSTRONG%3Eaa%3CBR%20%2F%3E%3C%2FSTRONG%3Ecom.microsoft.sqlserver.jdbc.SQLServerException%3A%20Integrated%20authentication%20failed.%20ClientConnectionId%3A....%3CBR%20%2F%3ECaused%20by%3A%20GSSException%3A%20No%20valid%20credentials%20provided%20(Mechanism%20level%3A%20Server%20not%20found%20in%20Kerberos%20database%20(7)%3CBR%20%2F%3ECaused%20by%3A%20KrbException%3A%20Server%20not%20found%20in%20Kerberos%20database%20(7)%3CBR%20%2F%3ECaused%20by%3A%20KrbException%3A%20Identifier%20doesn't%20match%20expected%20value%20(906)%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EIn%20this%20case%2C%20it%20is%20clearly%20saying%20that%20the%20SPN%20was%20not%20found.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3ETherefore%20you%20can%20check%20if%20the%20SPNs%20for%20SQL%20Service%20are%20properly%20registered%20to%20the%20SQL%20Service%20Account.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CSTRONG%3EMore%20info%3A%26nbsp%3B%3C%2FSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fdatabase-engine%2Fconfigure-windows%2Fregister-a-service-principal-name-for-kerberos-connections%3Fview%3Dsql-server-ver15%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ERegister%20a%20Service%20Principal%20Name%20for%20Kerberos%20Connections%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1843961684%22%20id%3D%22toc-hId--1843961750%22%3E%3CSTRONG%3E4.2)%20Logs%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIf%20you%20find%20an%20unexpected%20error%2C%20the%20following%20logs%20can%20help%20to%20understand%20what%20could%20be%20causing%20the%20problem.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-772633868%22%20id%3D%22toc-hId-772633802%22%3E%3CSTRONG%3E4.2.1)%20Provider%20Logs%3A%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3EYou%20can%20always%20collect%20provider%20logs%20from%20ODBC%20or%20MSJDBC.%3C%2FP%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EODBC%20Logs%20on%20Linux%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fconnect%2Fodbc%2Flinux-mac%2Fdata-access-tracing-with-the-odbc-driver-on-linux%3Fview%3Dsql-server-ver15%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EData%20Access%20Tracing%20with%20the%20ODBC%20Driver%20on%20Linux%20and%20macOS%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EMSJDBC%20Logging%20Level%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fconnect%2Fjdbc%2Ftracing-driver-operation%3Fview%3Dsql-server-ver15%23%3A~%3Atext%3DThe%2520Microsoft%2520JDBC%2520Driver%2520for%2520SQL%2520Server%2520supports%2Cof%2520classes%2520for%2520creating%2520Logger%2520and%2520LogRecord%2520objects.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETracing%20driver%20operation%20-%20SQL%20Server%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1034820595%22%20id%3D%22toc-hId--1034820661%22%3E%3CSTRONG%3E4.2.2)%20Network%20Traces%3A%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3EYou%20may%20consider%20to%20use%20a%20network%20capture%20tool%20(such%20as%20%3CEM%3E%3CSTRONG%3Etcpdump%3C%2FSTRONG%3E%3C%2FEM%3E)%20on%20Linux%20and%20then%20filter%20by%20the%20Kerberos%20messages.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20following%20command%20line%20will%20start%20a%20circular%20capture%20in%20the%20server.%20It%20will%20create%20up%20to%2010%20files%2C%20each%20one%20containing%20the%20maximum%20size%20of%202Gb%3C%2FP%3E%0A%3CPRE%3Esudo%20tcpdump%20-i%20any%20-w%20%2Fvar%2Ftmp%2Ftrace%20-W%2010%20-C%202000%20-K%20-n%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EOnce%20you%20start%20capturing%20the%20traces%2C%20reproduce%20the%20issue%20and%20then%20press%20Ctrl%2BC%20to%20stop%20capturing%20them.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThe%20files%20would%20be%20stored%20in%20the%20same%20folder%20used%20in%20the%20command%20line%20(in%20this%20case%2C%20%2Fvar%2Ftmp).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E...and%20that's%20all%20folks!%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20love%20to%20hear%20your%20feedback..!%3C%2FP%3E%0A%3CP%3EDid%20you%20find%20the%20steps%20described%20in%20this%20article%20helpful%3F%3C%2FP%3E%0A%3CP%3EWhat%20else%20would%20you%20like%20to%20have%20added%20to%20this%20post%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EWe%20hope%20you%20have%20enjoyed%20reading%20about%20this%20content.%3C%2FP%3E%0A%3CP%3ESee%20you%20in%20the%20next%20post!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2237855%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20known%20that%20SQL%20Server%20can%20be%20accessed%20with%20many%20different%20authentication%20methods.%20We%20often%20recommend%20the%20use%20of%20Integrated%20Security%20using%20Kerberos%20mainly%20because%20it%20allows%20delegated%20authentication%2C%20besides%20being%20an%20efficient%20method%20compared%20to%20others%20such%20as%20NTLM%2C%20for%20example.%3C%2FP%3E%0A%3CP%3EThis%20article%20will%20guide%20you%20configuring%20Kerberos%20settings%20and%20connecting%20to%20SQL%20Server%20from%20scratch%20in%20a%20Linux%20server.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Mar 26 2021 07:48 AM
Updated by: