From SambaWiki
Contents
1 Samba versions supporting Windows7 Domain Logon 2 Windows 7 Registry settings 3 NOTES with Samba 3.3.2, 3.3.3 and 3.3.4 4 Windows 7 Performance and Time Registry settings
Samba also ships with a registry patchfile that users can apply directly. The patchfile can be found in recent Samba sourcecode: $SOURCE/docs-xml/registry/Win7_Samba3DomainMember.reg or in Samba Bugzilla here: https://bugzilla.samba.org/attachment.cgi?id=4988&action=view Make sure to either reboot Windows 7 or restart the LanmanWorkstation service after setting these entries.
You will receive one warning about DNS domain name configuration after the join has succeeded:
"Changing the Primary Domain DNS name of this computer to "" failed. The name will remain "MYDOM". The error was: The specified domain either does not exist or could not be contacted"
This warning can be ignored or silenced with setting other registry keys. Update: There is a hotfix available from Microsoft to address this, see this http://support.microsoft.com/kb/2171571 Knowledge Base article for details Do not edit any other registry parameters (NETLOGON) that have been seen in the wild. If you have already modified your Windows 7 registry, please make sure to reset the keys to their default values. If you have changed the NETLOGON Parameters, make sure and turn them back to '1' as shown below:
HKLM\System\CCS\Services\Netlogon\Parameters DWORD RequireSignOrSeal = 1 DWORD RequireStrongKey = 1
For other versions, you must not change them. --Monyo 12:42, 6 April 2011 (CDT)
echo 'Windows Registry Editor Version 5.00 ; Win7_Samba3DomainMember [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters] "DNSNameResolutionRequired"=dword:00000000 "DomainCompatibilityMode"=dword:00000001 ; Speedup settings [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System] "SlowLinkDetectEnabled"=dword:00000000 "DeleteRoamingCache"=dword:00000001 "WaitForNetwork"=dword:00000000 "CompatibleRUPSecurity"=dword:00000001 ; Can drive you nuts [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "EnableLUA"=dword:00000000' | tee Win7_Samba3DomainMember_jelledj.reg unix2dos Win7_Samba3DomainMember_jelledj.reg
echo '@echo off echo. echo WARNING: Do not close this window!!! echo. c:\"Program Files\Windows Resource Kits\Tools\ntrights.exe" +r SeSystemTimePrivilege -u "Domai echo. echo WARNING: You may now close this window!!! echo.' | tee SeSystemTimePrivilege_jelledj.bat unix2dos SeSystemTimePrivilege_jelledj.bat
echo '@echo off echo. echo WARNING: Do not close this window!!! echo. "C:\Program Files\Mozilla Firefox\firefox.exe" http://download.microsoft.com/download/8/e/c/8e echo. echo WARNING: You may now close this window!!! echo.' | tee rktools_jelledj.bat unix2dos rktools_jelledj.bat
echo '@echo off echo. echo WARNING: Do not close this window!!! echo. NET USE Y: /DELETE NET USE Y: \\server\documenten /PERSISTENT:YES NET TIME \\server /SET /YES echo. echo WARNING: You may now close this window!!! echo.' | tee /srv/storage/samba/netlogon/netlogon.bat unix2dos /srv/storage/samba/netlogon/netlogon.bat setfacl --recursive --modify u::rw,g::r,m:---,o:--- /srv/storage/samba/netlogon/netlogon.bat chmod g+r /srv/storage/samba/netlogon/netlogon.bat cat /srv/storage/samba/netlogon/netlogon.bat su -c "cat /srv/storage/samba/netlogon/netlogon.bat" jelledj
--Tuxcrafter 15:12, 18 January 2011 (CST) Retrieved from "http://wiki.samba.org/index.php/Windows7" This page was last modified on 5 June 2011, at 16:22. Content is available under the CC-GNU GPL v2 or later.