Difference between revisions of "Windows 7 Support"
Line 30: | Line 30: | ||
Image:W7-8.png | Image:W7-8.png | ||
</gallery> | </gallery> | ||
+ | |||
+ | ===Slow login with win7 to sme8 domain=== | ||
+ | |||
+ | With certain network you can have an issue with some slooow login to the SME Server domain because a timeout issue on network.. In this case you have to do following commands lines as you can find in [[bugzilla:7332]] | ||
+ | Actually the version of package needed e-smith-samba-2.2.0-53.el5.sme is in smeupdates-testing but in few time it will be by default in smeupdates | ||
+ | so in first verify you package version | ||
+ | |||
+ | rpm -qa e-smith-samba | ||
+ | e-smith-samba-2.2.0-53.el5.sme | ||
+ | |||
+ | You need at least this version or above otherwise try this | ||
+ | |||
+ | yum update --enablerepo=smeupdates-testing e-smith-samba | ||
+ | signal-event post-upgrade; signal-event reboot | ||
+ | |||
+ | Then you must add a new configuration to you smb internal database | ||
+ | |||
+ | config setprop smb WaitForNetwork disabled | ||
+ | signal-event console-save | ||
+ | |||
+ | This is what you need to find in your server-ressources | ||
+ | |||
+ | cat /home/e-smith/files/server-resources/regedit/win7samba.reg | ||
+ | |||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters] | ||
+ | "DNSNameResolutionRequired"=dword:00000000 | ||
+ | "DomainCompatibilityMode"=dword:00000001 | ||
+ | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System] | ||
+ | "WaitForNetwork"=dword:00000000 | ||
+ | |||
+ | After that You have to follow the standard way to add a Win7 to the SME DOMAIN | ||
==Adding Windows 7 Support to SME Server 7== | ==Adding Windows 7 Support to SME Server 7== |
Revision as of 22:22, 15 May 2013
Author
Background
Windows 7 was released in October 2009. Due to changes in the way that trust relationships are established with domain controllers, older versions of Samba do not allow Windows 7 clients to log in once joined to a domain.
Although an upstream fix was made available for SME Server 8 (based on CentOS 5, see bug 5425), there is no comparable fix available from the upstream vendor for SME 7.x (based on CentOS 4).
Join a SME Server 8.0 Domain with Win7
Before to make a trick to your w7 registry, you can not reach the SME Server Domain, but we can do it easily either with an usb key or by the network with http.
- Save the Win7 registry patch (win7samba.reg) from https://your-server-ip/server-resources/regedit/ with your favourite web browser
- On your windows seven, start "regedit" by the start menu and import the win7samba.reg
- Set your domain instead of your workgroup. Add the client machine to the domain as normal.
- Log in as the 'admin' user of your SME Server with the same password for the first time
- You have to reboot your computer to reach the domain
(*) Admin or any user in the 'Domain Admins' group can join the domain.
Slow login with win7 to sme8 domain
With certain network you can have an issue with some slooow login to the SME Server domain because a timeout issue on network.. In this case you have to do following commands lines as you can find in bugzilla:7332
Actually the version of package needed e-smith-samba-2.2.0-53.el5.sme is in smeupdates-testing but in few time it will be by default in smeupdates
so in first verify you package version
rpm -qa e-smith-samba e-smith-samba-2.2.0-53.el5.sme
You need at least this version or above otherwise try this
yum update --enablerepo=smeupdates-testing e-smith-samba signal-event post-upgrade; signal-event reboot
Then you must add a new configuration to you smb internal database
config setprop smb WaitForNetwork disabled signal-event console-save
This is what you need to find in your server-ressources
cat /home/e-smith/files/server-resources/regedit/win7samba.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters] "DNSNameResolutionRequired"=dword:00000000 "DomainCompatibilityMode"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System] "WaitForNetwork"=dword:00000000
After that You have to follow the standard way to add a Win7 to the SME DOMAIN
Adding Windows 7 Support to SME Server 7
Thanks to SerNet, SME 7 users can now install an updated version of Samba which fixes the domain trust issues.
Installation
- Add the SerNet repository for CentOS 4.x
db yum_repositories set SerNet repository \ BaseURL http://ftp.sernet.de/pub/samba/3.5/centos/4 \ EnableGroups yes \ GPGCheck no \ Name 'SerNet Samba Team packages (CentOS 4)' \ Visible yes \ status enabled signal-event yum-modify
- Update SME Server - the new Samba packages will install automatically.
yum update signal-event post-upgrade ; signal-event reboot
Configuring Clients
- Install the Windows 7 registry patch from http://yourserver/server-resources/
- Add the client machine to the domain as normal.
- Log in as the 'admin' user for the first time.
Refer to bugzilla:5897 and bugzilla:7002 for details of following error
Roaming Profiles
Windows 7 clients require that a version 2 profile folder exist in the profiles$ share, which on SME Server is located in /home/e-smith/files/samba/profiles.
This additional profile folder is automatically provisioned for existing users when the installing latest version of e-smith-samba (see bug 5423). After this point, all new user accounts have the folder created as soon as they are added.
Version 2 profiles are not compatible with Windows XP and earlier. If you have mixed environments you will be required to maintain two separate profiles for each user.
Source Code
SerNet publishes the source code for their latest Samba build at http://ftp.sernet.de/pub/samba/3.5/src/rpm/
Code for older builds is also available at http://ftp.sernet.de/pub/samba/old/src/rpm/