Install Zentyal As PDC (Primary Domain Controller) and Integrate Windows System
Install Zentyal As PDC (Primary Domain Controller) and Integrate Windows System
Install Zentyal As PDC (Primary Domain Controller) and Integrate Windows System
This series will be titled Preparation for the setting up and managing Zentyal as PDC (Primary Domain
Controller)through Parts 1-14 and covers the following topics.
Part 1: Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System
Part 2: How to Manage Zentyal PDC (Primary Domain Controller) from Windows System
Part 3: Creating Organizational Units (OU) and Enableing GPO (Group Policy) in Zentyal PDC Server
Part 4: Setup File Sharing and Permissions for All Users in Zentyal PDC
Part 8: Installing FTP Server and Mapping FTP Directories in Zentyal PDC
Part 9: Install and Configure Web Services (Apache Virtual Hosting) on Zentyal Server
Part 10: Enabling UserDir and Password Protect Web Directories on Zentyal Webserver
Part 13: Install and Configure Zentyal Linux 3.5 as A BDC (Backup Domain Controller)
In this tutorial will demonstrate how to use a Linux distribution, Zentyal, as a PDC ( Primary Domain
Controller ) and integrate Windows based system in this Domain Controller.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 1/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Requirements:
Download Zentyal 3.4 Community Edition form this link http://www.zentyal.org/server/.
A different computer that runs a Windows based system to be integrated to domain.
The domain used is a fictional one and runs on local network only : “mydomain.com”.
Select Language
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 2/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Select Language
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 3/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
4. Choose your location. If your country is not listed in the default options choose other , then select your
continent and country: I’m in Romania so I choose Romania.
Select Country
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 4/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Select Location
5. Next configure your locales: I choose USA (en_US.UTF-8 ) because is a general locale.
Configure Locals
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 5/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Configure Keyboard
7. Next the installer will load components needed for configuring the system.
8. The next installer stage is to set the hostname for your system. You should enter here your FQDN. This is
a test server so I choose “pdc.mydomain.com” ( Be aware that “pdc” will be this server and “mydomain.com”
would be your domain for Active Directory ).
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 6/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Configure Network
9. Next choose a user for system administration ( This will be the privileged user with root powers – sudo )
not the user domain controller.
10. Next type a password for root user. Choose a strong one ( 9 characters at least
upper&lower&numerical&special ). Here I choose a simple one because is a test server.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 7/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Setup Password
11. Next it will ask you to re-enter your password and if you choose a weak one the installer will warn you
about this fact. So select Yes and hit enter.
12. Next step is configuring your time. If your system is connected to Internet the installer will automatically
detect your time zone. So press Yes if your time setting are the correct ones.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 8/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Configure Clock
13. Next screen is Partition Disks where you have four alternatives like in the images bellow. For better
control over your system partition choose manual and hit Enter.
Partition Disks
14. Choose your HDD. In this setup I’m on a VMware virtual disk.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 9/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
16. Configuring the Hard Disk Partitions. My HDD system config is the following.
On a real server you should allocate more space for all of partitions , even create a new one for /var. Now is
time to create a partition. Follow the steps. Choose Free space.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 10/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Configured Partitions
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 11/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 12/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Repeat this steps for /home and swappartitions too. The final disk layout should look like this. On the next
warn dialog choose yes and hit Enter again.
17. The next stage on the installer is asking if you want to setup a Graphical Environment for Zentyal. If your
server has a monitor and a keyboard attached to it then you should probably choose No ( This will install a
LXDE GUI ) else choose yes ( you will control your system remotely using web admin interface and ssh ).
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 13/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 14/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
19. On the next dialog just hit enter ( if you are accessing internet through a proxy you should enter it now).
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 15/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Configuring Apt
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 16/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Finishing Installation
21. Next choose Yes for next warning about UTC time.
22. And we reached finish line. Press enter to continue and the system will reboot.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 17/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Installation is Complete
After rebooting the system will install some basic software and the it will prompt us for web IP administration.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 18/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Next open a web browser and type the address prompted in Zentyal ( for this example the web admin
address is : https://192.168.1.13 ).
Next the web browser it will warn you about a security issue relating the certificate.
23. Choose “I Understand the Risks” , “Add exception“ and then “Confirm Security Exception” like in the
screenshoots below.
Choose HTTPS
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 19/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
24. Then enter your user and password for admin user ( the user created on installation).
25. We are now presented with the Zentyal Web Administration and it’s time to choose and install software for
our PDC.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 20/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
26. Choose the following packages (modules) for the server to become a Primary Domain Controller.
DNS Service
File Sharing and Domain Services
Firewall
Network Configuration
Printer Sharing Service
Users and Computers
Package Selection
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 21/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Installing Packages
Configure Network
29. Next choose Static Method and enter your static IP server address ( this will be the pdc address) ,
netmask , gateway and DNS servers.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 22/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
30. Choose Standalone server and enter your domain name ( not FQDN) and hit Finish.
Saving Changes
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 23/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Installation Finished
Now the software for this server to become a PDC is installed and ready to be used.
31. Now you should go to DNS Module and make sure that your domain is listed in the Domains tab.
32. Then go to Users and Computers Module , select Manage and add a user with Administrator Privileges
for Active Directory. Select Users , Click on “+” button bellow and enter your credentials.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 24/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Add User
33. Then select the user you just created an on the right side under User Groups field select Domain Admins
and hit the “+” button so it should look like bellow screenshots.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 25/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
34. Now go to Domain Module , select Settings , choose a description for your server, select “Enable roaming
profiles” and hit Change button.
35. Now go top right and click on Save Changes for the system to apply your new settings and Click Save.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 26/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Save Changes
That’s it for now on the pdc server minimal configuration to become a Primary Domain Controller.
36. First let’s setup network configuration for the system to be able to access the new domain. Go to Start -
> Control Panel -> Network and Internet-> Network and Sharing Center -> View Network Status and Tasks -
> Local Area Connection.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 27/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
37. On Local Area Connection select Properties -> IPv4 -> and enter your static IP, netmask, Gateway and
DNS like in the screenshoots bellow.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 28/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Enter IP Details
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 29/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
38. To be sure that everything is OK try first pinging your pdc server address and then ping domain name.
39. We now reach the end of this tutorial. Let’s finish the configuration by adding Windows 7 to
the mydomain.com domain name. Click “Computer” -> System Properties -> Advanced System Settings -
> Computer Name.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 30/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
System Settings
40. Enter your computer name in Computer Name field domain in Member of Domain.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 31/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
41. On the next prompt enter username and password for the Administrator User of your domain ( the user
created in Users and Computer through Zentyal Web Interface).
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 32/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Welcome to Domain
42. Reboot the computer to apply the setting and logon to your new domain.
Restart Computer
44. Navigate again to https://192.168.1.13 and check if the Computer has been added to Users and
Computers.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 33/34
06/05/2020 Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System - Part 1
Congratulations! You now have a full domain service and you can easily add other windows based system
into your new domain .
Next tutorial will be on how to access your pdc server remotely from Windows based systems, Create new
Users and Groups, Create a Share and setup Group Policy for this domain users and computers.
https://www.tecmint.com/install-zentyal-as-primary-domain-controller-and-integrate-windows-system/ 34/34