Search This Blog

2010-06-20

Adding Ubuntu 8.10 (and later) to a Windows AD Domain

It's been about a year since we've added a Ubuntu machine to Active Directory and it was a huge pain to do so back then. As much as we tried we could not manage to get these instructions working with Ubuntu 8.04 but they worked flawlessly on 8.10.

So here are the instructions:

Note: The following instructions only work on ubuntu distributions 8.10 and above

sudo apt-get update
sudo apt-get install likewise-open
sudo domainjoin-cli join fqdn.of.your.domain Administrator
sudo update-rc.d likewise-open defaults
sudo /etc/init.d/likewise-open start

Now edit your nsswitch configuration file located at /etc/nsswitch.conf to look like the following:

The important parts are highlighted

# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference’ and `info’ packages installed, try:
# `info libc “Name Service Switch”‘ for information about this file.
passwd: compat winbind lwidentity
group: compat winbind lwidentity
shadow: compat winbind
hosts: files dns winbind
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
You may have a synchronization problem with your windows time server in which you will need to install the following:
 
apt-get install ntpdate

Then you will need to add the IP address of your LAN time server or an internet based time server like time.nist.gov to the file /etc/ntp.conf then restart ntp with the following command:

/etc/init.d/ntpupdate restart

Then reboot the computer to make sure changes take effect

Now you can login to your windows domain using ubuntu by typing the following in the username field when logging in.
DOMAIN\username

Then enter your password for that username on the domain


No comments:

Post a Comment