Joining Windows 7 to a Samba Domain
This is a problem I ran into at YSTV recently. We run a Samba 3 domain and have recently upgraded our Edit PCs to use Windows 7. Unfortunately Windows 7 out of the box will not join a Samba domain, saying that the “Domain does not exist or could not be contacted” after asking you for login credentials (so it must have contacted the domain controller already, right?!).
Fortunately though, the fix is quite simple. There are two things you need to do:
- Install at least samba 3.2.14. This was the oldest version I got to work under Gentoo, but at the time of writing it’s still masked in portage.
- Modify a few registry keys on your Windows 7 machines:
- HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0HKLM\System\CCS\Services\Netlogon\Parameters
DWORD RequireSignOnSeal = 1
DWORD RequireStrongKey = 1Some places will tell you to set the second two values to 0, however I’ve found this not to be necessary – you can just leave them to their defaults of ‘1’. If you run into problems, you can try switching to 0. Otherwise, it might be time to check server logs and make sure that NetBios is working correctly to resolve the Domain name to a Domain Controller.
It’s also worth pointing out, that after the “Welcome to the DOMAIN domain” message, you may get a DNS error popup. You can safely ignore this, and all seems to work fine (and it doesn’t bother you again).