How to Add Ubuntu to a Domain on Windows Server

Windows Server is an integral system that allows us to manage computers from other systems such as Ubuntu, this is quite useful since in an organization or company not all computers handle Windows operating system and of course we cannot put aside the different users from Ubuntu or any other distribution.

For this reason, if we are administrators and we want to register a computer with Ubuntu, which by the way is easy to configure , in a network of Windows Server servers, here we will explain in detail how we can do it easily and efficiently, let’s see how we can do it.

Index(  )

  1. How to access domain settings in Windows Server?
  2. So you can create a static IP address in a domain in Windows Server
  3. This is the way to connect Ubuntu to a domain on Windows Server
    1. Install utilities in Ubuntu terminal
  4. These are the steps to register the domain name in Ubuntu
  5. Follow this procedure to ping Windows Server IP from Ubuntu
  6. Use the following syntax to join Ubuntu to Windows Server
    1. Verification of binding

How to access domain settings in Windows Server?

The way in which we can enter the Windows Server domain settings menu is by moving to start, inside we will look for ‘Computer’ , then we will click with the right mouse button on ‘This Computer’ and then click on ‘Properties’, we will see in the central part on the right a button with the name ‘Change Settings’ on which we will click.

In the next window we click on ‘Change’ and then in the next window we must click where it says ‘Domain’ , following this procedure to the letter we can get to the Windows Server domain settings.

So you can create a static IP address in a domain in Windows Server

To configure the IP address, we must go to login on the computer with the administrator account, click on start, select the control panel and then click on network connections, once there, click the secondary button on the part corresponding to the local area connection that we want to modify and then we click on the properties.

In the next box that we will see, we must click on ‘Internet Protocol’ and then on ‘Properties’, a new box will appear, in this we will click on’ Obtain IP Address Automatically ‘ then click on’ Obtain a DNS Server Address Automatically ‘and then click on’ OK ‘and then’ Close ‘and’ Close ‘. Then we can write the command to create the IP.

This is the way to connect Ubuntu to a domain on Windows Server

To correctly connect Ubuntu to a Windows Server domain, we must make sure that the two systems are communicated for it, both must be connected to the same local network, a procedure that we will achieve by pinging the server.

Install utilities in Ubuntu terminal

Once the connectivity has been verified, we must perform an update of the Ubuntu equipment by entering the command ‘sudo apt update’, when the different updates are already installed we execute the command ‘sudo apt-get-y install realmd sssd sssd that grants us the installation of the packages with which the synchronization between both systems will be completed. We can also install hyper terminal to create a continuous command interface.

These are the steps to register the domain name in Ubuntu

To register the Ubuntu domain name, we execute the command ‘sudo nano / etc / hostname to set the desired hostname and then we must write the changes, then with the command’ sudo hostname –F / etc / hostname, with this we will update your name, finally we consult it and verify that the machine searches for your domain name.

Follow this procedure to ping Windows Server IP from Ubuntu

To begin we will open the terminal of our Linux distribution, in this case Ubuntu, we can do it by pressing the key combination ‘CRTL + ALT + T’, then we enter the command ‘ping’ with the corresponding address of the destination computer in the line of command, then we confirm by pressing enter, this ping can be set to run in continuous loop.

Use the following syntax to join Ubuntu to Windows Server

In this procedure it is required to meet some prerequisites, Active Directory domain that we can download and install quickly , DNS registered in the server, the system time must be synchronized with the respective domain controller and install Kerberos, Samba, SSSD and NTP . The installation of the packages will be done with ‘sudo apt install krb5-user samba ss’.

Once the different packages are installed, we request Kerberos authentication with the ‘sudo kinit administrator’ command and finally what we do is join the domain with the ‘sudo net ads join-k’ command. This would be the whole procedure to join Ubuntu to Windows.

Verification of binding

One way to verify if there is a link between Ubuntu and Windows is by configuring shared folders that we can consult on both systems. If we can see the shared folders, it means that there is a connection between the two systems.