This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[HOW TO] Samba Active Directory Domain Controller
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
[HOW TO] Samba Active Directory Domain Controller
In this how to, I use ODROID-C1(ARM version) but you can use any NAS4Free later 10.1.0.2.1665.
For ZFS only user, you need create UFS partition.
viewtopic.php?f=55&t=9126
Preparation:
Disable CIFS/SMB
Use static IP address for LAN interface
Enable NTP
Use unused hostname and unused domain name
Empty directory on UFS partition for AD DC data
Note:
AD DC will create DNS records of the specified domain.
You must set IP addres of the AD DC server to all clients via DHCP or static IP.
sysvol on ZFS is not supported. You must use UFS for sysvol storing.
To clear cached buffer, routing table, arp table and more, reboot the server is recommended before creating Samba AD DC.
Configure Samba Active Directory Domain Controller:
You can create AD DC from Initialize page of Services|Samba AD.
Example setting:
Hostname: nas4free-oc1
DNS fowrder: 8.8.8.8
DNS domain: mydomain.local
NetBIOS domain: MYDOMAIN
Set DNS forwarder to ISP's DNS server. Don't use local server/router.
If you don't know it, try to use Google Public DNS.
https://developers.google.com/speed/public-dns/
Set Path on your permanent device such as HDD.
Optinally, check "User shares" if you want use shares defined in Services|CIFS/SMB|Shares.
Note: You can change DNS forwarder and User shares after initializing anytime.
After few seconds(some time few minutes), you can see the result.
If you don't specify password, the admin password is shown in the result.
If you don't want such complex password, you can reset the password by CLI after enabling.
# samba-tool user setpassword administrator
After initializing, DNS server of the N4F will be changed to 127.0.0.1 to use Samba AD DC's internal DNS.
To flush created AD DC data to the disk completely, you need reboot the server.
Enable AD DC:
After enabling, you can see many of samba process.
Now your AD DC is running, you can join the AD from Windows, other N4F and other OSs.
First time you have only adminitrator account.
You need create your account on AD DC.
Join Windows to AD DC:
If you use DHCP, set DNS server to N4F's static IP address.
Otherwise, you can set DNS server address manually.
Change System Properties.
Login with AC DC user.
You can manage domain user by RSAT(Remote Server Administration Tools): For more detail, see also:
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
https://wiki.samba.org/index.php/Joinin ... o_a_Domain
https://wiki.samba.org/index.php/DNS_Co ... on_Windows
https://wiki.samba.org/index.php/Instal ... Management
For ZFS only user, you need create UFS partition.
viewtopic.php?f=55&t=9126
Preparation:
Disable CIFS/SMB
Use static IP address for LAN interface
Enable NTP
Use unused hostname and unused domain name
Empty directory on UFS partition for AD DC data
Note:
AD DC will create DNS records of the specified domain.
You must set IP addres of the AD DC server to all clients via DHCP or static IP.
sysvol on ZFS is not supported. You must use UFS for sysvol storing.
To clear cached buffer, routing table, arp table and more, reboot the server is recommended before creating Samba AD DC.
Configure Samba Active Directory Domain Controller:
You can create AD DC from Initialize page of Services|Samba AD.
Example setting:
Hostname: nas4free-oc1
DNS fowrder: 8.8.8.8
DNS domain: mydomain.local
NetBIOS domain: MYDOMAIN
Set DNS forwarder to ISP's DNS server. Don't use local server/router.
If you don't know it, try to use Google Public DNS.
https://developers.google.com/speed/public-dns/
Set Path on your permanent device such as HDD.
Optinally, check "User shares" if you want use shares defined in Services|CIFS/SMB|Shares.
Note: You can change DNS forwarder and User shares after initializing anytime.
After few seconds(some time few minutes), you can see the result.
If you don't specify password, the admin password is shown in the result.
If you don't want such complex password, you can reset the password by CLI after enabling.
# samba-tool user setpassword administrator
After initializing, DNS server of the N4F will be changed to 127.0.0.1 to use Samba AD DC's internal DNS.
To flush created AD DC data to the disk completely, you need reboot the server.
Enable AD DC:
After enabling, you can see many of samba process.
Now your AD DC is running, you can join the AD from Windows, other N4F and other OSs.
First time you have only adminitrator account.
You need create your account on AD DC.
Join Windows to AD DC:
If you use DHCP, set DNS server to N4F's static IP address.
Otherwise, you can set DNS server address manually.
Change System Properties.
Login with AC DC user.
You can manage domain user by RSAT(Remote Server Administration Tools): For more detail, see also:
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
https://wiki.samba.org/index.php/Joinin ... o_a_Domain
https://wiki.samba.org/index.php/DNS_Co ... on_Windows
https://wiki.samba.org/index.php/Instal ... Management
You do not have the required permissions to view the files attached to this post.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I will update this later.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
If you want create CIFS/SMB shares, you need enable non-default settings.
Here is important setting on it.
For shares on UFS: For shares on ZFS: Additionally, you need passthrough of ACL inherit and ACL mode on ZFS dataset.
Here is important setting on it.
For shares on UFS: For shares on ZFS: Additionally, you need passthrough of ACL inherit and ACL mode on ZFS dataset.
You do not have the required permissions to view the files attached to this post.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- zoon01
- Developer

- Posts: 724
- Joined: 20 Jun 2012 21:06
- Location: Netherlands
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Nice posting daoyama
This is something for the wiki too
anyone able to write it?
http://wiki.nas4free.org/doku.php?id=do ... &#services
This is something for the wiki too
anyone able to write it?
http://wiki.nas4free.org/doku.php?id=do ... &#services
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz
Development system is same system in virtualbox.
Development system is same system in virtualbox.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I use dnsmasq based DHCP server extension on my NAS. I meed define dnsforvarder as "localhost" or nas4free ip address (10.0.0.1) ?
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- ChriZathens
- Forum Moderator

- Posts: 758
- Joined: 23 Jun 2012 09:14
- Location: Athens, Greece
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I have started writing it, but due to my inexperience with the wiki (and lack of time..zoon01 wrote:Nice posting daoyama![]()
This is something for the wiki too
anyone able to write it?
http://wiki.nas4free.org/doku.php?id=do ... &#services
If anyone is willing to help, most welcomed..
My Nas
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- Case: Fractal Design Define R2
- M/B: Supermicro x9scl-f
- CPU: Intel Celeron G1620
- RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
- PSU: Chieftec 850w 80+ modular
- Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
- O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
- Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
-
noclaf
- experienced User

- Posts: 116
- Joined: 08 Dec 2013 12:37
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Really thanks for that guide!
I have two question :
1) Can I (how?) create&use UFS partition on my USB stick where I have my embedded N4F?
2) Is that recommended?
Unfortunately I have only this USB stick&HW RAID which is encrypted and thus must be manually mounted. Therefore the only "place" where I can have UFS partition for SAMBA AD is the stick.
I have two question :
1) Can I (how?) create&use UFS partition on my USB stick where I have my embedded N4F?
2) Is that recommended?
Unfortunately I have only this USB stick&HW RAID which is encrypted and thus must be manually mounted. Therefore the only "place" where I can have UFS partition for SAMBA AD is the stick.
-
antal
- NewUser

- Posts: 1
- Joined: 20 Jul 2015 14:34
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I did all preparations:
"Preparation:
Disable CIFS/SMB
Use static IP address for LAN interface
Enable NTP
Use unused hostname and unused domain name
Empty directory on UFS partition for AD DC data"
so when I go to Services ->Samba AD and click "Initialize" button i get a blank window and nothig happens..
I have a UFS filepartition.
My conf.
What is wrong?
"Preparation:
Disable CIFS/SMB
Use static IP address for LAN interface
Enable NTP
Use unused hostname and unused domain name
Empty directory on UFS partition for AD DC data"
so when I go to Services ->Samba AD and click "Initialize" button i get a blank window and nothig happens..
I have a UFS filepartition.
My conf.
What is wrong?
You do not have the required permissions to view the files attached to this post.
-
tdrivas
- NewUser

- Posts: 3
- Joined: 01 Jun 2015 03:34
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Why do you need a UFS partition?
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
You must use samba DNS to provide service record for domain server.alexey123 wrote:I use dnsmasq based DHCP server extension on my NAS. I meed define dnsforvarder as "localhost" or nas4free ip address (10.0.0.1) ?
Probably you cannot install other DNS service with Samba AD DC in same machine.
Use 127.0.0.1 on Samba AD DC and specify DNS forwarder as your DNS server.
Also you must specify Samba AD DC IP address only as DNS server in DHCP.
You cannot use your DNS server for AD member clients.
(You can set DNS manually as fixed address on client side instead of DHCP)
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
If you install N4F by recommended method you have always #3 data partition on USB stick.noclaf wrote:1) Can I (how?) create&use UFS partition on my USB stick where I have my embedded N4F?
2) Is that recommended?
You can use it but I recommend that you use RAID volume for samba data.
Using without redundancy is high risk.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Do you reboot before Initialize?antal wrote: so when I go to Services ->Samba AD and click "Initialize" button i get a blank window and nothig happens..
Please post your initialize page (parameters).
If possible, try to use other web browser.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
The samba setup will create default NTFS ACL(not permission) on initial sysvol.tdrivas wrote:Why do you need a UFS partition?
ZFS cannot handle NTFS ACL by default.
At this time, I have no solution for it.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Hmm, I'm noob in AD//daoyama wrote:alexey123 wrote: You cannot use your DNS server for AD member clients.
(You can set DNS manually as fixed address on client side instead of DHCP)
I have win8.1 Home. for me I cannot be AD-member, but I want to make Dnsmasq compatible with NAS4Free.
I see:
AD controller open sockets udp and tcp *:53 , also mdnsresponder open socket *:5353 - so I must define DNS port for dnsmasq to any another number.
Dns will not work, but DHCP server will work for netboot.
Part for dnsmasq startup script is:
Code: Select all
command="/usr/local/sbin/dnsmasq"
_sambaad=`/usr/local/bin/xml sel -t -v "count(//sambaad/enable)" /conf/config.xml`
if [ 0 -eq "${_sambaad}" ]; then
dnsmasqport=""
else
dnsmasqport="-p 5354"
fi
command_args="-x $pidfile -C $dnsmasq_conf ${dnsmasqport}"Also I see very strangle issue.
If I disable AD controller, then enable it - I must reboot NAS4Free server for give to start AD controller. But Gui not prompt me make reboot.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
marcos
- NewUser

- Posts: 13
- Joined: 27 Jul 2013 16:50
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I just can thank again all the developers and the rest of the crew involved in this project: it's pretty cool to have the chance of deploying a small AD environment with just one computer (the NAS) that's already always on.
In a production environment having just one DC can be useless, but in a home/testing/educational environment is quite useful.
I've got a few questions about this topic:
- Can I use the DC deployed with NAS4free with vmware sphere? I mean, can I use it as the domain controller for vcenter server (and the ESXi hosts, the virtual machines etc..)? I don't see why not, but I'm not sure.Has anybody tried it?
- nas4free 10.2.0.2 uses samba version 4.2.3, does this version of samba support SMB 3.02? (for windows 8.1 and server 2012r2 integration) I answer myself: yes, it does.
- Are there any indications about the space needed for the UFS data partition used by AD? In my setup I only got one ZFS pool (3x2tb disks in raidZ1) and a 8gb USB2.0 stick. I know in this case it's recommended to use a UFS data partition with redundancy in the zfs pool, but I'd rather using the 3rd partition in my usb stick. -> I answer myself: in an enviroment with 6 computers joined to the domain and 6 active users, I'm using about 60mb in a lz4 ZFS volume formated in UFS2 (following the guide at the beginning of this thread). Instead of 2gb I assigned 3gb, so I've got a lot of free unused space
I know some of these questions may be answered at the freebsd 10.2 documentation or forums, but I haven't found anything. (that's another topic, I think I may be helpful with the documentation/wiki, although my English is not very good)
I've been using NAS4free for nearly 3 years, mainly as a iSCSI target for vmware sphere storage and for samba shares among windows, linux, android phones and TVs, iOS, pcbsd...clients. I'm using at the moment SMB3 with the "old" CFIS/samba shares in NAS4free 10.2.0.2 and everything is working fine even with an "old" Panasonic Viera smartTV , that's why I'm trying to see the pros and cons before upgrading to samba 4 and an active directory environment with NAS4free as the only DC. I answer myself again: the only non-working device at the moment is the mentioned panasonic viera smart TV (it seems it has some restrictions in file names) the rest are working fine inside an AD enviroment, with all the benefits of being inside a domain.
I've got another questions, anyway:
- Can I manipulate file permissions on my shared folders from windows using the Computer Management tool? (loged as a domain admin in my nas4free domain controller)

I know it's always better to manipulate permissions using UNIX permissions (being a ZFS filesystem, a BSD box...) at least that's what I've read in the samba documentation, but I wonder if there is any issue if I manipulate them from here using windows tools
Thanks
In a production environment having just one DC can be useless, but in a home/testing/educational environment is quite useful.
I've got a few questions about this topic:
- Can I use the DC deployed with NAS4free with vmware sphere? I mean, can I use it as the domain controller for vcenter server (and the ESXi hosts, the virtual machines etc..)? I don't see why not, but I'm not sure.Has anybody tried it?
- nas4free 10.2.0.2 uses samba version 4.2.3, does this version of samba support SMB 3.02? (for windows 8.1 and server 2012r2 integration) I answer myself: yes, it does.
- Are there any indications about the space needed for the UFS data partition used by AD? In my setup I only got one ZFS pool (3x2tb disks in raidZ1) and a 8gb USB2.0 stick. I know in this case it's recommended to use a UFS data partition with redundancy in the zfs pool, but I'd rather using the 3rd partition in my usb stick. -> I answer myself: in an enviroment with 6 computers joined to the domain and 6 active users, I'm using about 60mb in a lz4 ZFS volume formated in UFS2 (following the guide at the beginning of this thread). Instead of 2gb I assigned 3gb, so I've got a lot of free unused space
I know some of these questions may be answered at the freebsd 10.2 documentation or forums, but I haven't found anything. (that's another topic, I think I may be helpful with the documentation/wiki, although my English is not very good)
I've been using NAS4free for nearly 3 years, mainly as a iSCSI target for vmware sphere storage and for samba shares among windows, linux, android phones and TVs, iOS, pcbsd...clients. I'm using at the moment SMB3 with the "old" CFIS/samba shares in NAS4free 10.2.0.2 and everything is working fine even with an "old" Panasonic Viera smartTV , that's why I'm trying to see the pros and cons before upgrading to samba 4 and an active directory environment with NAS4free as the only DC. I answer myself again: the only non-working device at the moment is the mentioned panasonic viera smart TV (it seems it has some restrictions in file names) the rest are working fine inside an AD enviroment, with all the benefits of being inside a domain.
I've got another questions, anyway:
- Can I manipulate file permissions on my shared folders from windows using the Computer Management tool? (loged as a domain admin in my nas4free domain controller)

I know it's always better to manipulate permissions using UNIX permissions (being a ZFS filesystem, a BSD box...) at least that's what I've read in the samba documentation, but I wonder if there is any issue if I manipulate them from here using windows tools
Thanks
10.2.0.2 - Prester (revisión 1868)
x64-embedded on Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz, 6gb DDR2 RAM + 4gb swap
3 x 2tb Toshiba DT01ACA200 raid-Z1
sphere 5.5 iSCSI target for VMs + samba shares
------------------------------------------------------
testing 10.2.0.2 arm @ Raspberry Pi 2
x64-embedded on Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz, 6gb DDR2 RAM + 4gb swap
3 x 2tb Toshiba DT01ACA200 raid-Z1
sphere 5.5 iSCSI target for VMs + samba shares
------------------------------------------------------
testing 10.2.0.2 arm @ Raspberry Pi 2
-
meirick
- NewUser

- Posts: 4
- Joined: 10 Sep 2015 01:17
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Hello,
I follow your "How do", and the work weel.
I use ZFS for the file system
But i don't understand how manage the permission? What manage the permission the CiFS share, ZFS, AD, Unix?
Thank for your help.
I follow your "How do", and the work weel.
I use ZFS for the file system
But i don't understand how manage the permission? What manage the permission the CiFS share, ZFS, AD, Unix?
Thank for your help.
-
philm
- Starter

- Posts: 24
- Joined: 20 Jul 2016 01:10
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Hey all, I was wondering if anyone knew of a fix for the issue found in this posting:
viewtopic.php?f=98&t=10812&p=79031#p79031
I am getting the OP error when I initilize the samba AD. And talking to the samba mailing listing, they say that it is not possible to get the samba service working on ZFS file system. I did inform them that I created a UFS Zvol but they are insisting it is not possible but here we are.
Please, any help will be much appreciated
viewtopic.php?f=98&t=10812&p=79031#p79031
I am getting the OP error when I initilize the samba AD. And talking to the samba mailing listing, they say that it is not possible to get the samba service working on ZFS file system. I did inform them that I created a UFS Zvol but they are insisting it is not possible but here we are.
Please, any help will be much appreciated
-
riveradavid
- Starter

- Posts: 25
- Joined: 28 Feb 2019 17:48
- Location: New York
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
The link to how to create a UFS partition if ZFS only (shown early in the original post)does not seem to work.
I do not use a USB stick, but have XigmaNAS install on a 240gb SSD. Do I have to redo the installation and create the boot in UFS rather than ZFS?
I appreciate any help anyone can offer.
Thanks
I do not use a USB stick, but have XigmaNAS install on a 240gb SSD. Do I have to redo the installation and create the boot in UFS rather than ZFS?
I appreciate any help anyone can offer.
Thanks
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
riveradavid
- Starter

- Posts: 25
- Joined: 28 Feb 2019 17:48
- Location: New York
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Thank you very much. That worked.raulfg3 wrote: ↑17 Nov 2019 17:13you can create a UFS volume or partition.
UFS on ZFS : viewtopic.php?f=55&t=9126
UFS Partition:
-
riveradavid
- Starter

- Posts: 25
- Joined: 28 Feb 2019 17:48
- Location: New York
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
Hi again,
I am getting an error during my Samba Initialize. The screen shots are shown in the attached PDF.
I am getting an error during my Samba Initialize. The screen shots are shown in the attached PDF.
You do not have the required permissions to view the files attached to this post.
-
rjwren79
- NewUser

- Posts: 1
- Joined: 11 Aug 2018 13:07
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
I am showing the same issue.
Initalizing...
Traceback (most recent call last):
File "/usr/local/bin/samba-tool", line 33, in <module>
from samba.netcmd.main import cmd_sambatool
File "/usr/local/lib/python3.6/site-packages/samba/init.py", line 28, in <module>
import ldb
ModuleNotFoundError: No module named 'ldb'
Someone help!
Initalizing...
Traceback (most recent call last):
File "/usr/local/bin/samba-tool", line 33, in <module>
from samba.netcmd.main import cmd_sambatool
File "/usr/local/lib/python3.6/site-packages/samba/init.py", line 28, in <module>
import ldb
ModuleNotFoundError: No module named 'ldb'
Someone help!
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: [HOW TO] Samba Active Directory Domain Controller
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510