Integrate CentOS/RedHat/Fedora in Zentyal PDC (Primary Domain Controller) – Part 6

After my previous tutorials on Zentyal 3.4 running as a PDC, where I have integrated Windows based OS and Ubuntu, now it’s time to integrate another well known Linux distribution called CentOS.

  1. Install Zentyal as PDC (Primary Domain Controller) and Integrate Windows – Part 1
  2. Manage Zentyal PDC (Primary Domain Controller) from Windows – Part 2
  3. Creating Organizational Units and Enableing Group Policy – Part 3
  4. Setup File Sharing in Zentyal PDC – Part 4
  5. Integrate Ubuntu in Zentyal PDC – Part 5
Add Centos in Zentyal PDC
Add Centos in Zentyal PDC

In this setup CentOS 6.5 Desktop will be integrated into Zentyal PDC with the help of Likewise Open package based on Winbind. The instructions also works for Red Hat and Fedora distributions.

Step 1: Integrating CentOS in Zentyal PDC

1. On CentOS 6.5, open a Terminal and login with local root account.

Login to CentOS
Login to CentOS

2. Open your browser, navigate to the following link and download PowerBroker Identity Services package for CentOS Platform ( x86 or x64 ) and save it.

  1. PowerBroker Identity Services

Alternatively, you can use wget command to download the rpm package as shown below.

# wget http://download.beyondtrust.com/PBISO/8.0.0.2016/linux.rpm.x64/pbis-open-8.0.0.2016.linux.x86_64.rpm.sh

3. Now set the executable permission on the downloaded rpm package by running the following command.

# chmod +x pbis-open-8.0.0.2016.linux.x86_64.rpm.sh

4. Then install Likewise Open software packages needed for CentOS 6.5 to join Zentyal 3.4 PDC by running.

# ./pbis-open-8.0.0.2016.linux.x86_64.rpm.sh

5. Answer all questions with “yes” and after the installation completes reboot your system.

Install Likewise Open
Install Likewise Open

Step 2: Configuring Network Connections

6. Go to Network icon shortcut from upper menu and right click on it and select Edit Connections.

Edit Connections
Edit Connections

7. Select your Network Interface that is connected to your Zentyal network and select Edit.

Select Network Interface
Select Network Interface

8. Go to IPv4 tab, choose Manual or Automatic (DHCP) address only and enter all DNS configurations needed hit on Apply. On DNS field enter Zentyal Server IP address.

Enter Network Configuration
Enter Network Configuration

9. To verify DNS functionality, issue a ping command on domain name. If domain responds from CentOS, means everything configured correctly.

# ping mydomain.com

10. Next, set hostname for CentOS system in ‘/etc/sysconfig/network‘ file. Here, I set hostname as ‘centos’.

# vi /etc/sysconfig/network

Step 3: Join CentOS to Zentyal PDC

11. Now it’s time to join CentOS 6.5 system to Zentyal PDC to be a part of Active Directory. Open a terminal as root user, and run the following command.

# domainjoin-cli join domain_name domain_administrative_user
Join CentOS to Zentyal PDC
Join CentOS to Zentyal PDC

If you would like to do it from a Graphical User Interface, run the following command on the terminal.

# /opt/likewise/bin/domainjoin-gui

Next, enter Domain settings as shown in the below screen grab.

Enter Domain Settings
Enter Domain Settings

Enter your Zentyal PDC Administrator credentials.

Domain Join Authentication
Domain Join Authentication

At the end you will get a success notify from server.

Joining Domain
Joining Domain
Active Directory  Membership
Active Directory Membership

12. To verify that CentOS system has been added to Active Directory go to Zentyal Web Administrative Panel at ‘https://yourdomain_name‘, navigate to Users and Computers -> Manage and check if CentOS hostname added in domain forest on Computers.

Confirm Domain Added
Confirm Domain Added

13. As a complementary step you can also confirm from a remote Windows machine by running Active Directory Users and Computers.

CentOS Properties
CentOS Properties

Step 4: Login to Domain Controller

14. To login with a user that belongs to domain use the following command.

$ su -  domain_name\\domain_user
Login to Domain Controller
Login to Domain Controller

15. To login via GUI Login screen, select Other using keyboard arrows and enter.

domain_name\domain_user
GUI Login screen
GUI Login screen

After login, reboot your system and your domain will be automatically added to logins. Then you can perform login just using the remote username without the domain name.

Enter Login User
Enter Login User
User Shell Login
User Shell Login

16. Now you can login on CentOS with remote users belonging to Zentyal PDC Active Directory and their default profile will be stored under.

/home/local/DOMAIN_NAME/domain_user
User Profile Paths
User Profile Paths

17. To remote login from Putty use this login structure.

domain_name\domain_user

If you like to change that ugly “sh” prompt switch to bash shell.

/bin/bash
User Shell
User Shell

Step 5: Enable Active Directory Administrative Rights

18. By default CentOS doesn’t allow remote users from Active Directory to perform administrative tasks on system or to empower the root account with sudo.

Enable AD Rights
Enable AD Rights

19. To enable Active Directory Administrative rights on User, you need to add the user to sudoers file.

# vi /etc/sudoers

OR

# sudo visudo

Add the following lines with your Zentyal Administrative user as shown below.

DOMAIN_NAME\\domain_administrative_user    ALL=(ALL)  ALL

domain_administrative_user    ALL=(ALL)  ALL
Add Administrative Rights
Add Administrative Rights

20. As demonstrated now Zentyal PDC Administrative User has full root privileges install/remove software packages, manage services, edit configuration and much more.

User Admin Rights
User Admin Rights
If this article helped, with someone on your team.

TecMint Weekly Newsletter
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.
TecMint has been free for 14 years. Help keep it that way.
Google AI Overviews and tools like ChatGPT have cut into search traffic for independent tech sites like TecMint. Running this site costs over $2,000 every month for hosting, infrastructure, and paying authors to keep the content accurate and tested.

If this article helped you solve a problem, consider buying a coffee. It helps keep TecMint free, supports the authors, and keeps the project going.
☕ Buy Me a Coffee
Matei Cezar
I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

2 Comments

Leave a Reply
  1. Dear

    Our system successfully join to our domain .but unfortunatly we can not login with any kind of connections like XDMCP.

    Thanks.

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.

Free Course
Get a free Linux course before you go.
Subscribe to TecMint Weekly and get the Learn Linux 7 Days Crash Course free. Read by 34,000+ Linux professionals every Thursday.
Something went wrong. Please try again.
Check your email for a magic link to get started.