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.