Site icon DesignLinux

Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows System – Part 1

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 Enabling GPO (Group Policy) in Zentyal PDC Server
Part 4: Setup File Sharing and Permissions for All Users in Zentyal PDC
Part 5: Integrate Ubuntu System in Zentyal PDC
Part 6: Integrate CentOS/RedHat/Fedora in Zentyal PDC
Part 7: Integrate Ubuntu 14.04 (Trusty Tahr) to 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 11: Installing Pydio File Sharing Platform on Zentyal Web Server
Part 12: How to Install and Configure OpenVPN Server on Zentyal PDC
Part 13: Install and Configure Zentyal Linux 3.5 as A BDC (Backup Domain Controller)
Part 14: Joining CentOS 7 Desktop to Zentyal PDC (Primary Domain Controller)

This tutorial will demonstrate how to use a Linux distribution, Zentyal, as a PDC ( Primary Domain Controller ) and integrate a Windows-based system in this Domain Controller.

Requirements:

Step 1: Installing Zentyal Server

1. Choose language.

Choose Zentyal Language

2. Choose an expert mode.

Install Zentyal Server Edition

3. Again choose your language for the installation process.

Choose Zentyal Installation Language

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 India so I choose India.

Choose Zentyal Country

5. Next configure your keyboard: I choose the English US keyboard.

Configure Zentyal Keyboard
Choose Zentyal Keyboard
Choose Zentyal Keyboard Layout

6. Next the installer will load components needed for configuring the system.

Zentyal Loading Additional Components

7. 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.tecmint.com” ( Be aware that “pdc” will be this server and “tecmint.com” would be your domain for Active Directory ).

Choose Zentyal Hostname

8. Next choose a user for system administration ( This will be the privileged user with root powers – sudo ) not the user domain controller.

Set Zentyal User

9. Next type a password for the sudo user. Choose a strong one ( 9 characters at least upper&lower&numerical&special ). Here I choose a simple one because is a test server.

Set Zentyal User Password

10. 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.

Confirm Zentyal User Password

11. Next step is configuring your time. If your system is connected to the Internet the installer will automatically detect your time zone. So press Yes if your time setting is the correct one.

Set Zentyal Timezone

12. Next screen is Partition Disks where you have four alternatives like in the images below. For better control over your system partition choose Manual and hit Enter.

Manual Zentyal Partitioning

13. Choose your HDD. In this setup, I’m on a Virtualbox virtual disk.

Choose Zentyal Disk

14. Next choose Yes and hit Enter.

Create Zentyal Partition Table

15. Configuring the Hard Disk Partitions. My HDD system config is the following.

On a real server, you should allocate more space for all of the partitions, even create a new one for /var partition. Now is the time to create a partition. Follow the steps. Choose Free space.

Choose Free Space
Set Size Partition
Set Partition Type
Set Partition Location
Root Partition Summary

Repeat these steps for /home and swap partitions too. The final disk layout should look like this. On the next to warn dialog choose yes and hit Enter again.

Zentyal Partitioning Table
Zentyal Partitioning Changes

16. The next stage on the installer is asking if you want to set up 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 an LXDE GUI ) else choose yes ( you will control your system remotely using a web admin interface and ssh ).

Choose Zentyal Graphical Environment

17. Next your system starts installing.

Installing Zentyal System

18. On the next dialog just hit enter ( if you are accessing the internet through a proxy you should enter it now).

Configure Zentyal Package Manager
Configure Zentyal APT Mirror

19. Choose Yes for installing Grub into MBR.

Install GRUB Boot Loader

20. Next choose Yes for the next warning about UTC time.

Set Zentyal System Clock

21. And we reached the finish line. Press enter to continue and the system will reboot.

Zentyal Installation Completes

After rebooting the system will install some basic software and then it will prompt us for web IP administration.

Installing Zentyal Core Packages
Zentyal Login

Step 2: Installing Basic Softwares for PDC

22. Now it’s time to go to heavy stuff – meaning accessing web remote administrating tool and installing the basic software for the server to become a complete Primary Domain Controller (PDC) with samba4.

23. Choose “Advanced” and then “Proceed” like in the screenshots below.

Zentyal SSL Warning

24. Then enter your user and password for the admin user ( the user-created on installation).

Zentyal Admin Login

25. We are now presented with the Zentyal Web Administration and it’s time to choose and install software for our PDC from Software ManagementZentyal Components and choose the following packages (modules) for the server to become a Primary Domain Controller.

Installing Zentyal Components
Installing Zentyal Packages

26. Next, go to the SystemGeneral and set the Hostname and Domain.

Set Host and Domain Name

27. Now you should go to DNS Module and make sure that your domain is listed in the Domains tab.

Confirm Zentyal Domain Name

28. Then go to Users and Computers Module, select Manage and add a user with Administrator Privileges for Active Directory. Select Users, Click on the “+” button below, and enter your credentials.

Add Admin User in Zentyal

29. Now go to Domain Module, select Settings, choose a description for your server, select “Enable roaming profiles” and hit the Change button.

Zentyal Domain Settings

30. Now go top right and click on Save Changes for the system to apply your new settings and click Save.

Zentyal Save Changes

That’s it for now on the PDC server minimal configuration to become a Primary Domain Controller.

Step 3: Integrating a Windows System in PDC

It’s time to integrate a Windows-based system ( In this example a Windows 10 system) in the “tecmint.com” domain.

31. First let’s set up the 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.

On Local Area Connection select Properties -> IPv4 -> and enter your static IP, netmask, gateway, and DNS like in the screenshots below.

Configure IP Address in Windows

32. To be sure that everything is OK try first pinging your pdc server address and then ping the domain name.

Ping Zentyal PDC Domain

33. We now reach the end of this tutorial. Let’s finish the configuration by adding Windows 10 to the tecmint.com domain name. Click “Computer” -> System Properties -> Advanced System Settings -> Computer Name.

Enter your computer name in the Computer Name field domain in Member of Domain.

Add Windows to Domain

34. 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).

Join Domain to Windows
Domain Joined

35. Next, restart your computer to apply changes and log on to your new domain.

AD User Login

36. Navigate again to Zentyal Web Dashboard and check if the Computer has been added to Users and Computers.

Windows Added to Zentyal

Congratulations! You now have a full domain service and you can easily add other windows based systems into your new domain.

The 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 set up Group Policy for this domain users and computers.

Exit mobile version