Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 6f7ae43

Browse files
authored
Merge pull request #5736 from slaymaker1907/patch-1
Update steps on joining Linux to AD
2 parents a49a66d + d6571cc commit 6f7ae43

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

docs/linux/sql-server-linux-active-directory-join-domain.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,27 @@ Before you configure Active Directory authentication, you need to set up an Acti
2323
> [!IMPORTANT]
2424
> The sample steps described in this article are for guidance only and refer to Ubuntu 16.04, Red Hat Enterprise Linux (RHEL) 7.x and SUSE Enterprise Linux (SLES) 12 operating systems. Actual steps may slightly differ in your environment depending on how your overall environment is configured and operating system version. For example, Ubuntu 18.04 uses netplan while Red Hat Enterprise Linux (RHEL) 8.x uses nmcli among other tools to manage and configure network. It is recommended to engage your system and domain administrators for your environment for specific tooling, configuration, customization, and any required troubleshooting.
2525
26+
### Reverse DNS (RDNS)
27+
28+
When you set up a computer running Windows Server as a domain controller, you might not have a RDNS zone by default. Ensure that an applicable RDNS zone exists for both the domain controller and the IP address of the Linux machine that will be running SQL Server.
29+
30+
Also ensure that a PTR record that points to your domain controllers exists.
31+
2632
## Check the connection to a domain controller
2733

28-
Check that you can contact the domain controller with both the short and fully qualified names of the domain:
34+
Check that you can contact the domain controller by using both the short and the fully qualified names of the domain, and by using the hostname of the domain controller. The IP of the domain controller also should resolve to the FQDN of the domain controller:
2935

3036
```bash
3137
ping contoso
3238
ping contoso.com
39+
ping dc1.contoso.com
40+
nslookup <IP address of dc1.contoso.com>
3341
```
3442

3543
> [!TIP]
3644
> 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 must replace these names with your own values.
3745
38-
If either of these name checks fail, update your domain search list. The following sections provide instructions for Ubuntu, Red Hat Enterprise Linux (RHEL), and SUSE Linux Enterprise Server (SLES) respectively.
46+
If any of these name checks fail, update your domain search list. The following sections provide instructions for Ubuntu, Red Hat Enterprise Linux (RHEL), and SUSE Linux Enterprise Server (SLES) respectively.
3947

4048
### Ubuntu 16.04
4149

@@ -139,11 +147,15 @@ Use the following steps to join a SQL Server host to an Active Directory domain:
139147
```base
140148
sudo yum install realmd krb5-workstation
141149
```
142-
143-
**SUSE:**
150+
151+
**SLES 12:**
152+
153+
Note that these steps are specific for SLES 12, which is the only officially supported version of SUSE for Linux.
144154

145155
```bash
146-
sudo zypper install realmd krb5-client
156+
sudo zypper addrepo https://download.opensuse.org/repositories/network/SLE_12/network.repo
157+
sudo zypper refresh
158+
sudo zypper install realmd krb5-client sssd-ad
147159
```
148160

149161
**Ubuntu:**
@@ -156,6 +168,14 @@ Use the following steps to join a SQL Server host to an Active Directory domain:
156168

157169
1. After you confirm that your DNS is configured properly, join the domain by running the following command. You must authenticate using an AD account that has sufficient privileges in AD to join a new machine to the domain. This command creates a new computer account in AD, creates the **/etc/krb5.keytab** host keytab file, configures the domain in **/etc/sssd/sssd.conf**, and updates **/etc/krb5.conf**.
158170

171+
Because of an issue with **realmd**, first set the machine hostname to the FQDN instead of to the machine name. Otherwise, **realmd** might not create all required SPNs for the machine and DNS entries won't automatically update, even if your domain controller supports dynamic DNS updates.
172+
173+
```bash
174+
sudo hostname <old hostname>.contoso.com
175+
```
176+
177+
After running the above command, your /etc/hostname file should contain <old hostname>.contoso.com.
178+
159179
```bash
160180
sudo realm join contoso.com -U 'user@CONTOSO.COM' -v
161181
```

0 commit comments

Comments
 (0)