{"id":1064,"date":"2013-03-07T13:57:12","date_gmt":"2013-03-07T18:57:12","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1064"},"modified":"2013-03-07T13:57:12","modified_gmt":"2013-03-07T18:57:12","slug":"nas4free-samba-home-directories-active-directory","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/03\/nas4free-samba-home-directories-active-directory\/","title":{"rendered":"Nas4Free Samba Home Directories Active Directory"},"content":{"rendered":"<p>Wow that title is a mouthful.  So I installed Nas4free (9.1.0.1-636) on a server with ample storage and wanted to give my end users access to this storage.  Why Nas4free?  Because it&#8217;s freakin easy to administer, fast, and ZFS snapshots are pretty damn nice.  And free.<\/p>\n<p>So, nas4free on a server.  I also had active directory with about 120 windows users.  Hell if I&#8217;m going to setup 120 &#8220;local&#8221; users on nas4free AND have to manage 120 &#8220;local&#8221; users passwords when they forget.  No way.  So I could either use LDAP or Active Directory &#8211; in my case I chose AD.<\/p>\n<p>Under Access, choose Active Directory (This actually joins the server to your domain, so I assume your network and other settings are already correct)<br \/>\nDomain Controller name: MYDC1<br \/>\ndomain name (DNS): MYDOMAIN.LOCAL<br \/>\nDomain name (NetBIOS): MYDOMAIN<br \/>\nAdministrator name: ADMINISTRATOR<br \/>\nAdministration password: ******<\/p>\n<p>Save.  Then verify that it joined your domain by clicking on Diagnostics, then Information.  Click on MS Domain.<br \/>\nYou should see the line &#8220;Join to &#8216;MYDOMAIN&#8217; is OK&#8221; and &#8220;checking the trust secret for domain MYDOMAIN via RPC calls succeeded&#8221; as well as a list of all of your domain user accounts imported.<\/p>\n<p>But then I needed to change CIFS\/SMB to allow my users:<br \/>\nClick on Services then CIFS\/SMB<br \/>\nAuthentication should already be set to Active Directory.  I had issues with protocol, so I changed it to NT1.  I also changed the workgroup to be the netBIOS name from above.<\/p>\n<p>Then, on shares, I created a HOmeDirs with the following path<br \/>\n\/mnt\/zfs\/zfsdataset\/homedirs\/%U<br \/>\nMade it browseable and with Guest Access enabled<br \/>\nThen enabled Shadow Copy<br \/>\nIn AUX parameters I entered:<br \/>\nvalid users = %U<br \/>\nforce user = %U<\/p>\n<p>Then, all you have to do manually is create each directory:<br \/>\nSSH to your nas4free<br \/>\nmkdir \/mnt\/zfs\/zfsdataset\/homedirs\/USERNAME1 etc<\/p>\n<p>I ended up chmod -R 777 \/mnt\/zfs\/zfsdataset\/homedirs<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wow that title is a mouthful. So I installed Nas4free (9.1.0.1-636) on a server with ample storage and wanted to give my end users access to this storage. Why Nas4free? Because it&#8217;s freakin easy to administer, fast, and ZFS snapshots are pretty damn nice. And free. So, nas4free on a server. I also had active &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/03\/nas4free-samba-home-directories-active-directory\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nas4Free Samba Home Directories Active Directory<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-1064","post","type-post","status-publish","format-standard","hentry","category-linux","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":1065,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1064\/revisions\/1065"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}