Thursday 11 September 2014

Integrate Ubuntu System in Zentyal PDC (Primary Domain Controller) – Part 5

Integrate Ubuntu System in Zentyal PDC (Primary Domain Controller) – Part 5

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators
After my previous tutorials on Zentyal 3.4 running as a PDC, where I have joined only Windowsrelated OS so far, is time to integrate Linux distributions systems to this domain name.
  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 3.4 PDC – Part 4
Zentyal 3.4 Community Server setup as a Primary Domain Controller acts like a Windows 2003 Server and can easily join all kind of Windows based OS, like Windows XP, 7, 8, 8.1, Server Editions 2003/2008/20012 and can also to a great job on joining Linux Desktop/Server distributions too.
Add Ubuntu in Zentyal PDC
Join Ubuntu in Zentyal PDC
In this setup Ubuntu 13.10 Desktop (or any Ubuntu version) will be integrated into Zentyal PDC with the help of Likewise Open package based on Winbind found on Ubuntu repositories.

Step 1: Integrating Ubuntu in Zentyal PDC

1. On Ubuntu 13.10, open Software & Updates from Dash menu.
Software & Updates
Software & Updates
2. On Other Software tab check both Canonical Partners.
Select Canonical Parteners
Select Canonical Parteners
3. Open a Terminal and do a system repository update with “sudo apt-get update” command.
$ sudo apt-get update
Update System
Update System
4. Then install Likewise Open software packages needed for Ubuntu to join Zentyal 3.4 PDC by running.
$ sudo apt-get install likewise-open-gui
Install Likewise Open
Install Likewise Open

Step 2: Configuring Network Connections

This step is optional, if your system has already Zentyal DNS IP in Network Configuration!.
5. Go to Network icon shortcut from upper menu and right click on it and select Edit Connections.
Network Configuration
Network Configuration
6. Choose your Network Interface that is connected to your Zentyal network and select Edit.
Choose Network Interface
Choose Network Interface
7. Select Manual or Automatic (DHCP) address only ( The important configurations here are your DNS ) and enter all configurations needed hit on Save, close window and verify your configuration. On DNS field enter Zentyal 3.4 IP address.
Enter Network Details
Enter Network Details
Connection Information
Connection Information
8. To verify that your DNS functionality issue a ping command on domain name.
Verify DNS
Verify DNS
The domain responds from Ubuntu and everything is correctly configured!
9. As a necessary step verify your Ubuntu hostname ( should respond with your system hostname else edit this file with an file editor like nano ,vi or gedit.
$ hostname
$ cat /etc/hostname
Set Hostname
Set Hostname

Step 3: Join Ubuntu to Zentyal PDC

10. Now is time to join Ubuntu to Zentyal PDC to be a part of Active Directory. Again open a Terminal and enter the following command and reboot to apply new settings.
$ sudo domainjoin-cli join domain_name domain_administrative_user
Join Ubuntu to Zentyal PDC
Join Ubuntu to Zentyal PDC
If you prefer doing it from a Graphical User Interface run the following command on the terminal.
$ sudo domainjoin-gui
And enter your settings like in the screenshots below.
Likewise AD Settings
Likewise AD Settings
Domain Join Authentication
Domain Join Authentication
At the end you will get a success notify from server.
Joining Domain
Joining Domain
11. To confirm that Ubuntu has been added to Active Directory go to Zentyal Web Administrative Tool ( https://yourdomain_name ), navigate to Users and Computers -> Manageand check if Ubuntu hostname appears in domain forest on Computers.
Users and Computers
Users and Computers
12. As a complementary step you can also verify from a Windows Remote System by running Active Directory Users and Computers.
Verify Domain
Verify Domain

Step 4: Login to Domain Controller

13. To login with a user that belongs to domain use the following structure from Terminal command line.
$ su -  domain_name\\domain_user
Login to Domain Controller
Login to Domain Controller
14. To perform a GUI login on Ubuntu 13.04 and Ubuntu 13.10 edit /etc/lightdm/lightdm.conf.d/10-ubuntu.conf file.
$ sudo nano /etc/lightdm/lightdm.conf.d/10-ubuntu.conf
Perform a GUI login
Perform a GUI login
Add the following lines at the bottom of the file.
allow-guest=false
greeter-show-manual-login=true
Configuration Parameters
Configuration Parameters
15. Then go on Ubuntu Login screen, select Login using keyboard arrows and enter.
domain_name\domain_user
OR
domain_name.tld\domain_user
OR
domain_user
Ubuntu Login Screen
Ubuntu Login Screen
16. Now you can login on Ubuntu with remote users belonging to Zentyal PDC Active Directory and their default profile will be located on.
/home/likewise-open/DOMAIN_NAME/domain_user
User Profiles
User Profiles
17. To remote login from Putty use this login structure.
domain_name\domain_user
Remote Login
Remote Login

Step 5: Enable Active Directory Administrative Rights

18. By default Ubuntu 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 Zentyal PDC Active Directory Administrative User with root powers on Ubuntu edit /etc/sudoers file.
$ sudo nano /etc/sudoers
20. Navigate under root privilege line and add your Zentyal Administrative user with the following lines.
DOMAIN_NAME\\domain_administrative_user    ALL=(ALL)  ALL
the_same_domain_administrative_user   ALL=(ALL)  ALL
Add Users
Add Users
21. As demonstrated now Zentyal 3.4 PDC Administrative User has full root power on Ubuntu system ( edit configuration files , install/remove software packages , manage services and all sorts of administrative tasks).
Full Root Privileges
Full Root Privileges
As a final conclusion Ubuntu can be integrated to Zentyal PDC Active Directory easily with the remark that Windows GPO doesn’t apply on Linux systems!

No comments:

Post a Comment