Microsoft is trying to force everybody to update from the old NT4 domain system to the “new” (as in “was new >10 years ago”) Active Directory system. While that’s probably a good idea for most people there are some like me stuck with a working Samba installation that for some reason needs to continue to use NT4 domains.
Getting a Windows computer to join such a domain has become more difficult with Windows 10. Here is what needs to be done (I write this mostly so I can look it up myself):
- Make sure your samba server is configured to enforce the NT4 (SMB1) login. samba.conf must contain the following entry:
[global] // other entries here server max protocol = NT1
- Install the SMB1 protocol on the Windows computer. This is done using the “Turn Windows Features on or off” dialog (just type this into the start menu). You need to set the check marks for two entries under “SMB 1.0/CIFS File share Support”:
- SMB 1.0/CIFS Client
- SMB 1.0/CIFS Server
I’m not 100% sure whether the latter is required. I haven’t tried it without.
- Add the following entries to the registry:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters] "DomainCompatibilityMode"=dword:00000001 "DNSNameResolutionRequired"=dword:00000000
You can either add them manually or copy the above to the .reg file and import that into the registry.
- Reboot the computer to activate these changes.
Now it should be possible to join the Windows 10 computer to the Samba Domain.
Source: Required Settings for Samba NT4 Domains on the Samba Wiki.