Introduction:An active directory is a directory service developed by Microsoft for Windows domain network, it is a database and a set of services that a user can connect to anytime when these services are required. The AD database consists of all the critical info about the organization.As an example if a user wants to access the Exchange account and also wants to access the network printer, they need to manually log in to each of these services. But if they are logged in to a domain-joined computer, they will have access to these resources automatically along with some other resources without the need of manually logging in to each service.This was all about why joining the computer to an AD is beneficial. Now let’s take a look into how to join an Ubuntu server to an AD using Centrify Access Manager.Requirements:
- A domain joined Windows computer (for installing Centrify access manager).
- A Linux/Unix computer (Ubuntu agent need to be installed in this)
- Centrify License key for downloading access manager setup
- Admin right to add new OU in the AD.
- Control access to all of our Linux, Unix, and macOS X-based computers.
- Also set and modify user and group properties for all of our UNIX, Linux, and Mac OS X users and groups.
- Create new zones and also direct already created zones and zone properties to simplify the process of access management and migrating UNIX user accounts to Active Directory.
- Add Active Directory users and groups to zones.
- From local password and groups files or NIS and NIS+ servers and domains, we can import user and group data.
- Import and maintain information related to the network from NIS maps such as netgroup, auto. master, and automount or create custom NIS maps.
- Authorize or restrict access to specific computers and operations on managed computers by defining certain rights and rules.
sudo dpkg -install [.deb file]Or can use the install.sh script for the installation purpose.The next step in the integration process is configuring the config file of the Ubuntu machine.- Open the
/etc/resolv.conffile. - Set the IP address of the nameserver entry to the IP address of the DNS server on the Active Directory domain controller that we need to connect. As shown below:
nameserver ip_address_of_DNS_serverWe also need to manually specify a domain controller inside the Centrify configuration file, /etc/centrifydc/centrifydc.conf:The format for it is- dns.dc.domain_name: server_name[server_name]The next step in the integration process is joining the Ubuntu machine to AD.We can use the adjoin command to join the Ubuntu machine to the AD. The syntax for the adjoin command is:adjoin --user username --zone zonename domainThe username in command is the domain join computer username, and it must be specified in the user_name@domain_name format.We also need to provide the password for the AD joined account.For more info about the adjoin command we can view the man page of adjoin: man adjoinThe final step in the integration process is to verify the AD join.We can verify that the AD is joined successfully to the Ubuntu Server by simply running the adinfo command in the Ubuntu machine. It will show all the information related to the AD we have joined.That’s how we successfully integrate the Ubuntu machine with the active directory using Centrify Access Manager. After the domain is joined, the password for managed computer in AD is reset at a regular interval of time to ensure security, and we can change this interval using the password change interval group policy.We can also use the managed Ubuntu machine to authenticate NIS users. 


