Likewise Open provides a complete authentication solution allowing *nix systems to be fully integrated into Active Directory environments.
Very easy to configure and it include GUI but in this post I don’t explain how to setup the GUI.
Edit your resolv.conf and add the Microsoft DNS like this:
If you have static IP address you can have something like this in your /etc/network/interfaces file
iface eth0 inet static
But it’s better if you have your DHCP server hand out the DNS nameserver address and search list.
apt-get update && apt-get install likewise-open
Joining a domain
With the command domainjoin-cli you can add the server to your AD domain
domainjoin-cli join fqdn.of.the.domain Administrator
It will prompt for the “Administrator” password followed with this message if it succeed
You should reboot this system before attempting GUI logins as a domain user.
Verification and useful command
View the Status of the local and AD Authentication Providers
List all known services and their status
Enumerate the users in Active Directory and view their members, GIDs, and SIDs
Listing Local and Domain users/group
Print real and effective user and group IDs
Remote login to Ubuntu with AD user
Use one of these:
ssh -l 'DOMAIN\USER' HOSTNAME
Allow Active Directory Domain Administrators to Administer Ubuntu
Edit the sudoers file
Add these lines
%DOMAIN\\Administrators ALL=(ALL) ALL
DOMAIN\\USERNAME ALL=(ALL) ALL
Adding “%” at the beginning means we are referring to a Group, without it for user.
With this we give sudo privileges to Active Directory users and groups.