{"id":1935,"date":"2021-04-16T16:07:11","date_gmt":"2021-04-16T16:07:11","guid":{"rendered":"https:\/\/dft.wiki\/?p=1935"},"modified":"2021-12-17T02:32:24","modified_gmt":"2021-12-17T02:32:24","slug":"linux-active-directory-domain-controller-ad-dc-with-zentyal","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=1935","title":{"rendered":"Linux Active Directory \/ Domain Controller (AD-DC) with Zentyal"},"content":{"rendered":"<p>Zentyal is an open-source email and groupware solution. It has its own Ubuntu-based distribution but also offers a repository for installation on top of the Ubuntu Server.<\/p>\n<p>The main goal of Zentyal is to offer a web-based interface to manage <strong>AD-DC<\/strong>, Windows <strong>File Sharing<\/strong>, Microsoft <strong>Exchange Server<\/strong>, full compatibility with <strong>Microsoft Outlook<\/strong> clients, and more.<\/p>\n<p>Check out NethServer, another open-source operating system that has similar features [<a href=\"https:\/\/www.nethserver.org\/\">Link<\/a>].<\/p>\n<p>It is recommended a minimum of <strong>2GB<\/strong> of RAM.<\/p>\n<p>For this tutorial, <strong>Zentyal Development Edition 7.0 (Free)<\/strong> will be installed on <strong>Ubuntu 20.04 LTS<\/strong>.<\/p>\n<p>Installing Zentyal:<\/p>\n<pre>hostnamectl set-hostname <strong>ad0<\/strong>\r\nsudo apt update &amp;&amp; sudo apt upgrade -y\r\nsudo ufw allow 8443<\/pre>\n<p>Create and execute the installation script:<\/p>\n<pre>#!\/bin\/sh\r\n\r\nVERSION=7.0\r\n\r\napt-get update\r\napt-get install gnupg2 -y\r\necho \"deb http:\/\/packages.zentyal.org\/zentyal $VERSION main extra\" &gt; \/etc\/apt\/sources.list.d\/zentyal-archive.list\r\necho \"deb http:\/\/ppa.launchpad.net\/oisf\/suricata-stable\/ubuntu focal main\" &gt;&gt; \/etc\/apt\/sources.list\r\napt-key adv --keyserver keyserver.ubuntu.com --recv-keys D7F87B2966EB736F\r\n\r\nwget -q http:\/\/keys.zentyal.org\/zentyal-$VERSION-packages.asc -O \/etc\/apt\/trusted.gpg.d\/zentyal-packages.asc\r\n\r\napt update\r\n\r\napt remove -y netplan.io\r\n\r\nDEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends zentyal &amp;&amp; clear<\/pre>\n<p>Create a new user and add it to <strong>sudo<\/strong> group. GIVE IT A SECURE PASSWORD!<\/p>\n<pre>adduser admin\r\nusermod -aG sudo admin\r\nreboot<\/pre>\n<p>Go to the browser and access\u00a0<strong>https:\/\/<span style=\"color: #ff0000;\">10.0.0.1<\/span>:8443\/<\/strong>. Change the <strong><span style=\"color: #ff0000;\">IP<\/span><\/strong> accordingly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1936\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-11-11-51.png\" alt=\"\" width=\"400\" height=\"423\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-11-11-51.png 400w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-11-11-51-284x300.png 284w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>The credential to log in is any local user that has <strong>sudo<\/strong> privileges (root is now allowed).<\/p>\n<p>On the <strong>Initial Setup<\/strong>\u00a0click <strong>Continue<\/strong>.<\/p>\n<p>Click on <strong>Skip Install<\/strong>\u00a0for now.<\/p>\n<p>Go to <strong>Software Management<\/strong> &gt; <strong>Zentyal Components<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1944\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-12-26-43.png\" alt=\"\" width=\"693\" height=\"664\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-12-26-43.png 693w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-12-26-43-300x287.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/p>\n<p>Click on <strong>Install<\/strong> and <strong>Continue<\/strong>.<\/p>\n<p>Go to <strong>Module Status<\/strong> &gt; <strong>System<\/strong> &gt; <strong>General<\/strong> &gt; <strong>Hostname and Domain<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1945\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-27-09.png\" alt=\"\" width=\"499\" height=\"261\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-27-09.png 499w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-27-09-300x157.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>Click <strong>OK<\/strong> and <strong>Save Changes<\/strong> (see picture):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1946\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-28-25.png\" alt=\"\" width=\"305\" height=\"265\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-28-25.png 305w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-28-25-300x261.png 300w\" sizes=\"auto, (max-width: 305px) 100vw, 305px\" \/><\/p>\n<p>Go to <strong>Domain<\/strong> &gt; <strong>Settings<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1948\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-36-34.png\" alt=\"\" width=\"232\" height=\"537\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-36-34.png 232w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-36-34-130x300.png 130w\" sizes=\"auto, (max-width: 232px) 100vw, 232px\" \/><\/p>\n<p>Change it accordingly.<\/p>\n<p>Note that <strong>IF<\/strong> you were setting up an <strong>Additional Domain Controller<\/strong> you would need to fill this form like following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1947\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-34-12.png\" alt=\"\" width=\"237\" height=\"722\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-34-12.png 237w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-34-12-98x300.png 98w\" sizes=\"auto, (max-width: 237px) 100vw, 237px\" \/><\/p>\n<p>Go to <strong>Module Status<\/strong> &gt; enable <strong>Domain Controller and File Sharing<\/strong> &gt; Click on <strong>Accept<\/strong>.<\/p>\n<p>If you get the following message:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1949\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-40-17.png\" alt=\"\" width=\"736\" height=\"64\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-40-17.png 736w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-40-17-300x26.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>Click on the link and configure the interface.<\/p>\n<p>If the IP is not reserved on the DHCP server assign it statically.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1950\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-41-52.png\" alt=\"\" width=\"568\" height=\"463\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-41-52.png 568w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/04\/Screenshot-from-2021-04-16-13-41-52-300x245.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>Try to activate the service again and <strong>Save Changes<\/strong>.<\/p>\n<p><strong>Cloud Environments<\/strong>: it is recommended to set up the interface static IP and test if everything still working before activating the Domain Controller feature.<\/p>\n<p>Create a new user called <strong>domainadmin<\/strong> and add it to the <strong>Domain<\/strong> group.<\/p>\n<p>It is now ready to create the users and groups, join computers to the domain, and so on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zentyal is an open-source email and groupware solution. It has its own Ubuntu-based distribution but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-1935","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1935"}],"version-history":[{"count":7,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1935\/revisions"}],"predecessor-version":[{"id":2595,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1935\/revisions\/2595"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}