
{"id":24,"date":"2011-10-05T18:06:49","date_gmt":"2011-10-05T18:06:49","guid":{"rendered":"http:\/\/www.miscstuff.org.uk\/?p=24"},"modified":"2024-08-19T10:22:14","modified_gmt":"2024-08-19T10:22:14","slug":"joining-windows-7-pcs-to-samba-domain","status":"publish","type":"post","link":"https:\/\/miscstuff.org.uk\/?p=24","title":{"rendered":"Joining Windows 7 PCs to Samba domain"},"content":{"rendered":"<p><strong>On the Windows client add the following DWORDs with regedit:<\/strong><\/p>\n<p>HKLM\\System\\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters<br \/>\nDWORD DomainCompatibilityMode = 1<br \/>\nDWORD DNSNameResolutionRequired = 0<\/p>\n<p>The following key needs to be changed or you will receive an error when trying to login using a domain account of \u201cThe trust relationship between this workstation and the primary domain failed.\u201d<\/p>\n<p>HKLM\\SYSTEM\\CurrentControlSet\\services\\Netlogon\\Parameters<br \/>\nRequireStrongKey = 0<\/p>\n<p><strong>On the Samba server enter the following commands:<\/strong><\/p>\n<p>(Substitute the PC&#8217;s Netbios name for &#8216;pc-name&#8217;)<\/p>\n<p>useradd -g domcomp -d \/var\/lib\/nobody -s \/bin\/false pc-name$<\/p>\n<p>passwd -l pc-name$<\/p>\n<p>smbpasswd -a -m pc-name<\/p>\n<p>You should now be able to add the PC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On the Windows client add the following DWORDs with regedit: HKLM\\System\\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters DWORD DomainCompatibilityMode = 1 DWORD DNSNameResolutionRequired = 0 The<\/p>\n<div class=\"read-button read_more_btn_text\"><a class=\"read_more\" href=\"https:\/\/miscstuff.org.uk\/?p=24\">Read Now<span class=\"arrow_readm\"> &#x25BA;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6,3],"tags":[16,23,29,31,30],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-linux","category-pc","category-windows","tag-linux","tag-networking","tag-pc","tag-samba","tag-windows"],"_links":{"self":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/24"}],"collection":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":5,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miscstuff.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}