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
Follow these steps to enable AD Kerberos authentication. [This Samba documentation](https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member) might be helpful as a reference.
67
+
Follow these steps to enable AD Kerberos authentication using either on-premises AD DS or Microsoft Entra Domain Services. [This Samba documentation](https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member) might be helpful as a reference.
68
68
69
69
### Make sure the domain server is reachable and discoverable
70
70
71
+
The following section assumes you have an existing, on-premises AD DS. If you're using Microsoft Entra Domain Services instead, skip this section and proceed to [Connect to Entra Domain Services and make sure the services are discoverable](#connect-to-microsoft-entra-domain-services-and-make-sure-the-services-are-discoverable).
72
+
71
73
1. Make sure that the DNS servers you enter contain the domain server IP addresses.
72
74
73
75
```bash
@@ -192,10 +194,14 @@ Follow these steps to enable AD Kerberos authentication. [This Samba documentati
192
194
fi
193
195
```
194
196
197
+
Proceed to [set up a hostname and fully qualified domain name](#set-up-hostname-and-fully-qualified-domain-name-fqdn).
### Connect to Microsoft Entra Domain Services and make sure the services are discoverable
198
202
203
+
If you're using AD DS and not Microsoft Entra Domain Services, you can skip this section and proceed to [set up a hostname and fully qualified domain name](#set-up-hostname-and-fully-qualified-domain-name-fqdn).
204
+
199
205
Make sure that you can ping the domain server by the domain name.
200
206
201
207
```bash
@@ -345,7 +351,7 @@ sudo smbcontrol all reload-config
345
351
346
352
### Join the domain
347
353
348
-
Use the `net ads join` command to join the host to the Microsoft Entra Domain Services domain. If the command returns an error, see [Troubleshooting samba domain members](https://wiki.samba.org/index.php/Troubleshooting_Samba_Domain_Members) to resolve the problem.
354
+
Use the `net ads join` command to join the host to the domain. If the command returns an error, see [Troubleshooting samba domain members](https://wiki.samba.org/index.php/Troubleshooting_Samba_Domain_Members) to resolve the problem.
349
355
350
356
```bash
351
357
sudo net ads join -U contososmbadmin # user - garead
If you plan for users to actively sign in to client machines and access the Azure file shares, you need to [set up nsswitch.conf](#set-up-nsswitchconf) and [configure PAM for winbind](#configure-pam-for-winbind). If planned access is limited to applications represented by a user account or computer account that need Kerberos authentication to access the file share, you can skip these steps.
376
-
377
381
### Set up nsswitch.conf
378
382
383
+
If you plan for users to actively sign in to client machines and access the Azure file shares, you need to set up nsswitch.conf. If planned access is limited to applications represented by a user account or computer account that need Kerberos authentication to access the file share, you can skip this step.
384
+
379
385
After you join the host to the domain, add the winbind libraries to the user and group lookup paths. Use your text editor to edit `/etc/nsswitch.conf` and add the following entries:
380
386
381
387
```plaintext
@@ -449,6 +455,8 @@ wbinfo --ping-dc
449
455
450
456
### Configure PAM for winbind
451
457
458
+
If you plan forusers to actively signin to client machines and access the Azure file shares, you need to configure PAM for winbind. If planned access is limited to applications represented by a user account or computer account that need Kerberos authentication to access the file share, you can skip this step.
459
+
452
460
Place winbind in the authentication stack so that domain users authenticate through winbind by configuring PAM (Pluggable Authentication Module) for winbind. The second command ensures that the system creates the home directory for a domain user upon first login.
After you enable AD (or Entra ID) Kerberos authentication and domain-join your Linux VM, you can mount the file share.
520
+
After you enable Kerberos authentication and domain-join your Linux VM, you can mount the file share.
513
521
514
522
Use the following mount option with all access control models to enable Kerberos security: `sec=krb5`. Omit the username and password when you use `sec=krb5`. For example:
0 commit comments