The previous article has been implemented to join Linux into the Windows AD domain, but it is possible that the future scenario is the opposite, there is already a OPENLDAP environment in the enterprise, and you need to join the Windows computer to the LDAP domain. We know that Windows cannot join the OPENLDAP domain directly, but only with Samba domains to join Windows to LDAP. So, here we're going to add window7 to the samba domain, because the samba version needs to be SAMBA4, so here's a demo using SuSE Linux, as long as the Windows7 is available in the home version, such as Enterprise, Pro, and Ultimate.
1. Windows7 Configuration
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/87/47/wKiom1fZd33zSNnAAAI3mahUDg0015.jpg-wh_500x0-wm_3 -wmp_4-s_3527403570.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_22h43m50s_001_.jpg "alt=" Wkiom1fzd33zsnnaaai3mahudg0015.jpg-wh_50 "/>
Open the Windows7 registry, and then locate the computer \hkey_local_machine\system\currentcontrolset\services\lanmanworkstation\parameters, Then create a new two DWORD value below, the name of a key is Domaincompatibilitymode, the value is 1, the name of the other key is dnsnameresolutionrequired, and the value is 0.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/87/44/wKioL1fZd4jRwwwhAAI4hCvyFLw487.jpg-wh_500x0-wm_3 -wmp_4-s_997364058.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h03m41s_002_.jpg "alt=" Wkiol1fzd4jrwwwhaai4hcvyflw487.jpg-wh_50 "/>
This is done after creation, and after the creation is complete, restart Windows7.
2. Creating a Samba server on SuSE Linux
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/87/44/wKioL1fZeIOxJOS6AAEfvinvZnA152.jpg-wh_500x0-wm_3 -wmp_4-s_4178258357.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h12m13s_003_.jpg "alt=" Wkiol1fzeioxjos6aaefvinvzna152.jpg-wh_50 "/>
Open the control center in SuSE and click on "Samba Server".
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/87/47/wKiom1fZeIWQbpM7AABx653Vikw551.jpg-wh_500x0-wm_3 -wmp_4-s_4042897282.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h14m16s_004_.jpg "alt=" Wkiom1fzeiwqbpm7aabx653vikw551.jpg-wh_50 "/>
Enter the domain name, this is Contoso.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/44/wKioL1fZeIaB5PjeAACDTwGmcZ4166.jpg-wh_500x0-wm_3 -wmp_4-s_3837395936.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h15m34s_005_.jpg "alt=" Wkiol1fzeiab5pjeaacdtwgmcz4166.jpg-wh_50 "/>
Select the Samba server type, where the primary domain controller (PDC) is selected.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/47/wKiom1fZeIiAMH7NAADbffXCJ1k992.jpg-wh_500x0-wm_3 -wmp_4-s_3521059865.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h17m41s_006_.jpg "alt=" Wkiom1fzeiiamh7naadbffxcj1k992.jpg-wh_50 "/>
Confirm the information in the identity, confirm that the "remote WINS server" is selected, and then click OK to complete the configuration.
3. Join Windows7 to the domain
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/44/wKioL1fZeWbgv8bSAABy6mRfQDU042.jpg-wh_500x0-wm_3 -wmp_4-s_448890654.jpg "style=" width:330px;height:363px; "title=" Ashampoo_snap_2016.09.14_23h23m01s_007_.jpg "alt = "Wkiol1fzewbgv8bsaaby6mrfqdu042.jpg-wh_50" width= "height=" 363 "border=" 0 "hspace=" 0 "vspace=" 0 "/>
Select the computer properties, then select Change, enter the domain name, OK.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/47/wKiom1fZeWfy4CZuAAB9fe0_fWg490.jpg-wh_500x0-wm_3 -wmp_4-s_3992897871.jpg "style=" width:430px;height:251px; "title=" ashampoo_snap_2016.09.14_23h45m11s_008_.jpg " alt= "Wkiom1fzewfy4czuaab9fe0_fwg490.jpg-wh_50" width= "430" height= "251" border= "0" hspace= "0" vspace= "0"/>
The Windows Security window pops up and asks for an account with permission to add the computer to the domain, enter the root account (this root account is the root account of samba, not the local root account of SuSE Linux), OK.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/87/44/wKioL1fZeWizRipAAAA4JfxduB8997.jpg-wh_500x0-wm_3 -wmp_4-s_3548457646.jpg "style=" WIDTH:250PX;HEIGHT:176PX; "title=" ashampoo_snap_2016.09.14_23h46m50s_009_.jpg " alt= "Wkiol1fzewizripaaaa4jfxdub8997.jpg-wh_50" width= "height=" 176 "border=" 0 "hspace=" 0 "vspace=" 0 "/>
Wait a moment, appear to join Contoso domain window, mood a little excited ah.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/47/wKiom1fZeW6hjvehAAHv5XXjlfQ545.jpg-wh_500x0-wm_3 -wmp_4-s_1066659176.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h48m19s_010_.jpg "alt=" Wkiom1fzew6hjvehaahv5xxjlfq545.jpg-wh_50 "/>
Back to the computer properties again, you can see that the computer is now in the Contoso domain.
4. Test using Samba domain account login Windows7
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/44/wKioL1fZenThDhTZAAFHtx8d6-g437.jpg-wh_500x0-wm_3 -wmp_4-s_2064257349.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h53m41s_011_.jpg "alt=" Wkiol1fzenthdhtzaafhtx8d6-g437.jpg-wh_50 "/>
After the computer is powered on, enter the root username password (again, root is also the root user of the samba domain).
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/47/wKiom1fZenjCyQ5MAAFnBeM-7vs017.jpg-wh_500x0-wm_3 -wmp_4-s_3815646548.jpg "style=" Float:none; "title=" Ashampoo_snap_2016.09.14_23h59m09s_012_.jpg "alt=" Wkiom1fzenjcyq5maafnbem-7vs017.jpg-wh_50 "/>
Successful login windows7, you can see that the root user is logged in, indicating that Windows7 joined the samba domain successfully.
Creating a Samba domain using SuSE is really simple, but adding windows to the Samba domain is straightforward, but how to integrate Samba and LDAP, and then join Windows to the Samba domain to log in to Windows through an LDAP user, This is a complete LDAP-based unified identity authentication scheme, currently do not do this, will be made up later.
This article is from "it Little two lang" blog, please make sure to keep this source http://jerry12356.blog.51cto.com/4308715/1852879
Join Windows7 to the samba domain