You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe9c96a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-active-directory-auth-overview.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ In order to use Active Directory authentication, you must have an AD Domain Cont
36
36
The details for how to configure AD authentication are provided in the tutorial, [Tutorial: Use Active Directory authentication with SQL Server on Linux](sql-server-linux-active-directory-authentication.md). The following list provides a summary with a link to each section in the tutorial:
37
37
38
38
1.[Join a SQL Server host to an Active Directory domain](sql-server-linux-active-directory-join-domain.md).
39
-
1.[Create an AD user for SQL Server and set the ServicePrincipalName](sql-server-linux-active-directory-authentication.md#createuser).
39
+
1.[Create an AD user for SQL Server and set the Service Principal Name](sql-server-linux-active-directory-authentication.md#createuser).
40
40
1.[Configure the SQL Server service keytab](sql-server-linux-active-directory-authentication.md#configurekeytab).
41
41
1.[Secure the keytab file](sql-server-linux-active-directory-authentication.md#configurekeytab).
42
42
1.[Configure SQL Server to use the keytab file for Kerberos authentication](sql-server-linux-active-directory-authentication.md#configurekeytab).
@@ -48,6 +48,8 @@ The details for how to configure AD authentication are provided in the tutorial,
48
48
- At this time, the only authentication method supported for database mirroring endpoint is `CERTIFICATE`. `WINDOWS` authentication method will be enabled in a future release.
49
49
- SQL Server on Linux does not support NTLM protocol for remote connections. Local connection may work using NTLM.
50
50
51
-
## Next Steps
51
+
## Next steps
52
52
53
-
For more information on how to implement Active Directory authentication for SQL Server on Linux, see [Tutorial: Use Active Directory authentication with SQL Server on Linux](sql-server-linux-active-directory-authentication.md).
53
+
-[Tutorial: Use Active Directory authentication with SQL Server on Linux](sql-server-linux-active-directory-authentication.md)
54
+
-[Understanding Active Directory authentication for SQL Server on Linux and containers](sql-server-linux-ad-auth-understanding.md)
55
+
-[Troubleshooting Active Directory authentication for SQL Server on Linux and containers](sql-server-linux-ad-auth-troubleshooting.md)
# Introduction to adutil - Active Directory utility
15
15
16
-
Adutil is a command-line interface (CLI) utility for interacting and managing Active Directory domains. You can use this tool to simplify Active Directory (AD) authentication configuration for both SQL Server on Linux and Linux-based SQL containers. Adutil eliminates the need to switch between Windows and Linux machines to manage Windows Active Directory when enabling AD authentication for SQL Server on Linux and containers.
17
-
18
-
Having adutil isn't a prerequisite for enabling AD authentication for SQL Server on Linux. You can use utilities like ktpass, as explained in [Tutorial: Use Active Directory authentication with SQL Server on Linux](sql-server-linux-active-directory-authentication.md), to enable AD authentication for SQL Server on Linux or containers.
19
-
20
-
Adutil is designed as a series of commands and subcommands, with additional flags that can be specified as further input. A category of administrative functions is represented by each top-level command. Within that category, each subcommand is an operation. We'll show you how you can download and get started with adutil.
21
-
22
-
> [!NOTE]
23
-
> adutil is a tool developed with SQL Server as the application. Hence, support for adutil will be limited for SQL Server use cases only.
24
-
>
25
-
> For controlled and secure environments where Lightweight Directory Access Protocol (LDAP) over Secure Sockets Layer (SSL) aka LDAPS is preferred over Lightweight Directory Access Protocol (LDAP).
26
-
>
27
-
> Please enable or set the “useLdaps“ option to ‘true’ in adutil.json configuration file which is usually located at: “/var/opt/mssql/.adutil/adutil.json” when run under the mssql user. Here is a sample json with setting:
28
-
>
29
-
> ```bash
30
-
> {
31
-
>"useLdaps": "true"
32
-
> }
33
-
>```
34
-
> By default, the useLDAPS setting is set to "false". When configuring this setting and using mssql-conf to create the keytab, make sure the mssql-conf command is running as the user mssql. To set up the keytab using the mssql-conf option, follow the steps below::
35
-
>
36
-
> 1. To run as mssql user, you can run the command: “sudo su mssql”
37
-
> 2. Now you can run the command to setup the keytab using the command: “mssql-conf setup-ad-keytab”
38
-
>
39
-
> If you are using regular LDAP we would like to clarify that passwords are not exchanged in plain text. For more information on how to configure LDAPS and how it differs from LDAP. Please refer the article [LDAP over SSL (LDAPS) Certificate](https://social.technet.microsoft.com/wiki/contents/articles/2980.ldap-over-ssl-ldaps-certificate.aspx#Enabling_LDAPS_for_Client_Authentication)
16
+
[!INCLUDE [SQL Server - Linux](../includes/applies-to-version/sql-linux.md)]
17
+
18
+
The **adutil** tool is a command-line interface (CLI) utility for configuring and managing Active Directory domains for SQL Server on Linux and containers, without switching between Windows and Linux machines to manage Windows Active Directory.
19
+
20
+
You don't need to use **adutil** to enable AD authentication for SQL Server on Linux or containers. You can also use utilities like **ktpass**, as explained in [Tutorial: Use Active Directory authentication with SQL Server on Linux](sql-server-linux-active-directory-authentication.md).
21
+
22
+
The **adutil** tool is designed as a series of commands and subcommands, with additional flags that you specify as further input. Each top level command represents a category of administrative functions. Within that category, each subcommand is an operation. This article will show you how you can download and get started with **adutil**.
23
+
24
+
## Configuring adutil for LDAP over Secure Sockets Layer (SSL)
25
+
26
+
Support for **adutil** is limited for SQL Server use cases only. Controlled and secure environments using Lightweight Directory Access Protocol (LDAP) over SSL (LDAPS) are preferred over Lightweight Directory Access Protocol (LDAP).
27
+
28
+
You can set the `useLdaps` option to `true` in the `adutil.json` configuration file, which is located at: `/var/opt/mssql/.adutil/adutil.json` when run under the `mssql` user. This JSON code sample shows how to configure the setting:
29
+
30
+
```json
31
+
{
32
+
"useLdaps": "true"
33
+
}
34
+
```
35
+
36
+
By default, the `useLDAPS` setting is set to `false`. When configuring this setting and using **mssql-conf** to create the keytab (key table), make sure you run **mssql-conf** as the user `mssql`.
37
+
38
+
To set up the keytab file, see [Create the SQL Server service keytab file](sql-server-linux-ad-auth-adutil-tutorial.md#create-the-sql-server-service-keytab-file).
39
+
40
+
For more information on how to configure LDAPS and how it differs from LDAP, see [LDAP over SSL (LDAPS) Certificate](https://social.technet.microsoft.com/wiki/contents/articles/2980.ldap-over-ssl-ldaps-certificate.aspx#Enabling_LDAPS_for_Client_Authentication).
40
41
41
42
## Installing adutil
42
43
43
-
> [!NOTE]
44
-
> If you do not accept the EULA during the time of install, when you run the adutil commandfor the first time, you will have to run it with the flag `--accept-eula`. This is truefor all distributions.
44
+
If you do not accept the EULA during the time of install, when you run the **adutil** command for the first time, you will have to run it with the flag `--accept-eula`. This is true for all distributions.
45
45
46
46
# [RHEL](#tab/rhel)
47
47
@@ -51,13 +51,13 @@ Adutil is designed as a series of commands and subcommands, with additional flag
1. If you had a previous preview version of adutil installed, remove any older adutil packages using the below command.
54
+
1. If you had a previous preview version of **adutil** installed, remove any older **adutil** packages using the below command.
55
55
56
56
```bash
57
57
sudo yum remove adutil-preview
58
58
```
59
59
60
-
1. Run the following commands to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for adutil. The EULA is placed at the path `/usr/share/adutil/`.
60
+
1. Run the following commands to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for**adutil**. The EULA is placed at the path `/usr/share/adutil/`.
61
61
62
62
```bash
63
63
sudo ACCEPT_EULA=Y yum install -y adutil
@@ -81,13 +81,13 @@ Adutil is designed as a series of commands and subcommands, with additional flag
81
81
sudo curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
82
82
```
83
83
84
-
1. If you had a previous preview version of adutil installed, remove any older adutil packages using the below command.
84
+
1. If you had a previous preview version of **adutil** installed, remove any older **adutil** packages using the below command.
85
85
86
86
```bash
87
87
sudo apt-get remove adutil-preview
88
88
```
89
89
90
-
1. Run the following command to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for adutil. The EULA is placed at the path `/usr/share/adutil/`.
90
+
1. Run the following command to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for**adutil**. The EULA is placed at the path `/usr/share/adutil/`.
91
91
92
92
```bash
93
93
sudo apt-get update
@@ -112,28 +112,28 @@ Adutil is designed as a series of commands and subcommands, with additional flag
1. If you had a previous preview version of adutil installed, remove any older adutil packages using the below command.
115
+
1. If you had a previous preview version of **adutil** installed, remove any older **adutil** packages using the below command.
116
116
117
117
```bash
118
118
sudo zypper remove adutil-preview
119
119
```
120
120
121
-
1. Run the following command to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for adutil. The EULA is placed at the path `/usr/share/adutil/`.
121
+
1. Run the following command to install **adutil**. `ACCEPT_EULA=Y` accepts the EULA for**adutil**. The EULA is placed at the path `/usr/share/adutil/`.
122
122
123
123
```bash
124
124
sudo ACCEPT_EULA=Y zypper install -y adutil
125
125
```
126
126
127
127
---
128
128
129
-
## Manage Windows AD using adutil
129
+
## Use adutil to manage Windows AD
130
130
131
-
Ensure that you download adutil to a host that is domain joined. You also need to obtain or renew the kerberos TGT (ticket-granting ticket) using the `kinit` command. Ensure that the account you use to `kinit` with has the permissions to execute the actions you intend to run on Windows AD through the adutil tool. For example, if you intend to create accounts and service principal names (SPN) using the adutil tool, then you should `kinit` with the account that has privileges to create SPNs and users on your AD.
131
+
Make sure that you download **adutil** to a host that is already joined to an AD domain. You also need to obtain or renew the Kerberos TGT (ticket-granting ticket), using the **kinit**command and a privileged domain account. The account you use must have permission to create accounts and Service Principal Names (SPNs) on the domain.
132
132
133
-
Here are some examples of actions that you can perform using adutil. To see a list of top-level commands, type`adutil --help`. This command will show you the top-level commands that you can use to manage and interact with AD.
133
+
Here are some examples of actions that you can perform using **adutil**. To see a list of top-level commands, type`adutil --help`. This command will show you the top-level commands that you can use to manage and interact with AD.
@@ -153,6 +153,7 @@ Here are some examples of actions that you can perform using adutil. To see a li
153
153
-d --debug Display additional debugging information when making LDAP/Kerberos calls.
154
154
--accept-eula Accepts the current EULA for adutil. This has no effect if the EULA has already been accepted.
155
155
```
156
+
156
157
To seek help with the next level of commands, you can further run the help option as shown below:
157
158
158
159
```bash
@@ -192,27 +193,27 @@ search - Search for an SPN by name or list all SPNs in the directory
192
193
193
194
## Samples
194
195
195
-
Each command is documented so that you can get started right away. Here are some of the typical activities that adutil is used for when configuring or administering AD authentication for SQL Server on Linux and containers:
196
+
Each command is documented so you can get started right away. Here are some of the typical activities that **adutil** is used for when configuring or administering AD authentication for SQL Server on Linux and containers:
196
197
197
-
- Creating an account in AD:
198
+
- Create an account in AD:
198
199
199
200
```bash
200
201
adutil user create --name sqluser --distname CN=sqluser,CN=Users,DC=CONTOSO,DC=COM
201
202
```
202
203
203
-
- Creating SPNs associated with an account or service:
204
+
- Create SPNs associated with an account or service:
0 commit comments