| title | Use third-party Active Directory providers with SQL Server on Linux | Microsoft Docs | |
|---|---|---|
| description | This tutorial provides the configuration steps for AD Authentication with third-party providers | |
| author | dylan-MSFT | |
| ms.date | 07/25/2018 | |
| ms.author | dygray | |
| manager | mikehab | |
| ms.topic | conceptual | |
| ms.prod | sql | |
| ms.component | ||
| ms.suite | sql | |
| ms.custom | sql-linux | |
| ms.technology | linux | |
| helpviewer_keywords |
|
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md-linuxonly]
This article explains how to configure a [!INCLUDEssNoVersion] on Linux host machine with AD Authentication when using third-party AD providers, such as PowerBroker Identity Services (PBIS), Vintela Authentication Services (VAS), and Centrify. This guide includes steps to check your AD configuration, and it is not intended to instruct on how to join a machine to a domain. For detailed instructions on joining a [!INCLUDEssNoVersion] host to a domain using REALM and SSSD, see Use Active Directory authentication with SQL Server on Linux.
Before you configure AD Authentication, you need to set up an AD Domain Controller (Windows) on your network and join your [!INCLUDEssNoVersion] on Linux host to an AD domain. You can use PBIS, VAS, or Centrify.
Note
This tutorial uses "contoso.com" and "CONTOSO.COM" as example domain and realm names respectively. It also uses "DC1.CONTOSO.COM" as the example fully qualified domain name of the domain controller. You should replace these with your own values.
Check you can contact the domain controller with both the short and fully qualified name of the domain.
ping contoso
ping contoso.comIf either of these fails, update your domain search list.
-
Ubuntu:
Edit the
/etc/network/interfacesfile so that your AD Domain is in the domain search list:<...> # The primary network interface auto eth0 iface eth0 inet dhcp dns-nameservers **<AD domain controller IP address>** dns-search **<AD domain name>**[!NOTE] The network interface (eth0) might differ for different machines. To find out which one you are using, run ifconfig and copy the interface that has an IP address and transmitted and received bytes.
After editing this file, restart the network service:
sudo ifdown eth0 && sudo ifup eth0Now check that your
/etc/resolv.conffile contains a line like the following example:search contoso.com com nameserver **<AD domain controller IP address>** -
RHEL:
Edit the
/etc/sysconfig/network-scripts/ifcfg-eth0file (or other interface config file as appropriate) so that your AD Domain is in the domain search list:<...> PEERDNS=no DNS1=**<AD domain controller IP address>** DOMAIN="contoso.com com"After editing this file, restart the network service:
sudo systemctl restart network
Now check that your
/etc/resolv.conffile contains a line like the following example:search contoso.com com nameserver **<AD domain controller IP address>**
If you still cannot ping the domain controller, find the fully qualified domain name (e.g. DC1.CONTOSO.COM) and IP address of the domain controller and add the following entry to /etc/hosts
**<IP address>** DC1.CONTOSO.COM CONTOSO.COM CONTOSO
-
SLES:
Edit the
/etc/sysconfig/network/configfile so that your AD domain controller IP will be used for DNS queries and your AD domain is in the domain search list:<...> NETCONFIG_DNS_STATIC_SEARCHLIST="" NETCONFIG_DNS_STATIC_SERVERS="**<AD domain controller IP address>**"After editing this file, restart the network service:
sudo systemctl restart network
Now check that your
/etc/resolv.conffile contains a line like the following example:search contoso.com com nameserver **<AD domain controller IP address>**
The following command should return the fully qualified domain name of the host running SQL Server (e.g. "SqlHost.contoso.com").
host **<IP address of SQL Server host>**
# **<reversed IP address>**.in-addr.arpa domain name pointerSqlHost.contoso.com.If this does not return your host's FQDN or if the FQDN is incorrect, add a reverse DNS entry for your [!INCLUDEssNoVersion] on Linux host to your DNS server.
Check your /etc/krb5.conf is configured correctly. For most third-party AD providers, this is done automatically. However, check /etc/krb5.conf for the following values to prevent any future issues:
[libdefaults]
default_realm = CONTOSO.COM
[realms]
CONTOSO.COM = {
}
[domain_realm]
contoso.com = CONTOSO.COM
.contoso.com = CONTOSO.COM
In this article, we covered how to configure a [!INCLUDEssNoVersion] on Linux host machine with AD Authentication when using third-party AD providers. To finish configuring [!INCLUDEssNoVersion] on Linux to support AD accounts, follow the instructions at Use Active Directory authentication with SQL Server on Linux.
[!div class="nextstepaction"] Use Active Directory authentication with SQL Server on Linux
Note
You can skip the "Join SQL Server host to AD domain" section in Use Active Directory authentication with SQL Server on Linux as you have just done that in this tutorial.