Joining Windows 7 PCs to Samba domain
On the Windows client add the following DWORDs with regedit:
HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0
The following key needs to be changed or you will receive an error when trying to login using a domain account of “The trust relationship between this workstation and the primary domain failed.”
HKLM\SYSTEM\CurrentControlSet\services\Netlogon\Parameters
RequireStrongKey = 0
On the Samba server enter the following commands:
(Substitute the PC’s Netbios name for ‘pc-name’)
useradd -g domcomp -d /var/lib/nobody -s /bin/false pc-name$
passwd -l pc-name$
smbpasswd -a -m pc-name
You should now be able to add the PC.