Ubuntu 21.04 was made available last month, and it has been quite the hit with both end users and businesses. Although you won’t find a massive amount of new features, what is there should be considered a significant step forward for enterprise and other business use cases.
SEE: Security incident response policy (TechRepublic Premium)
One particular feature that network and security admins will greatly appreciate is the ability to easily connect Ubuntu Desktop to an Active Directory domain. With this newly added ability, Linux desktops have become a more viable option for companies. The added benefit of this is users will be working on a more reliable and secure platform.
How do you join a new instance of Ubuntu Desktop to an Active Directory domain? I’m going to show you.
What you’ll need
To make this work, you need to do a fresh install of Ubuntu Desktop, because it is during the installation the connection to Active Directory is made. So download an ISO of Ubuntu Desktop 21.04, burn it to a USB or create a new virtual machine, and prepare to connect.
How to connect Ubuntu to the domain
During the installation of Ubuntu, you’ll get to the user creation screen. On that screen, go ahead and fill out the user information as you would normally do, but make sure to click the checkbox for Use Active Directory (Figure A).
In the next screen, fill out the domain and then click Test Connection (Figure B).
You should get a green check when the connection tests out. Once you see that, fill out the Domain Administrator and enter the password for that admin. With that information complete, click Continue and the installation will complete. Restart the machine and log in.
Once you’ve logged in, open a terminal and issue the command:
realm discover REALM
Where REALM is the name of the realm you’ve joined. You should see in the output, the details for the realm (Figure C).
Now that the Ubuntu Desktop machine has successfully joined the domain, you can then log in with users (who are a member of the domain) at the desktop login screen in the form of USER@REALM, where USER is the user with an Active Directory account and REALM is the realm the computer has joined.
Congratulations, you can now deploy Linux as a viable desktop solution on your company network. You can now more easily control the users that can log in to those desktops, with strict company policies.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.