Life in code, apps and OS's

How to join Ubuntu 8.04 to Windows Active Directory (Domain)

Posted on: May 23, 2008

These days many more companies are using mixed IT enviroments using a mixture of Windows, Linux, UNIX and Mac’s and I for one am using a mixture of Microsoft Windows and Linux (Ubuntu). On my network I use a Microsoft Active Directory and want to be able to get all Server (Linux & Windows) as well as Desktops (Linux and Windows) to authenticate in a central location.

Since browsing the web I managed to find this cool package that can be installed on Ubuntu Hardy Heron (8.04) which enables you to add and authenticate Ubuntu 8.04 against a Windows Domain Controller (Microsoft Active Directory)

So here goes…

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

Using the above commands you have installed ‘likewise-open’ which is the package that makes it possible for the Ubuntu client/server to logon to a Windows domain, added the client/server to the windows domain, updated the system services and then started the service.

Now that the LikeWise package has been installed you can now logoff (although I recommend full system reboot) and logon in this format:

DOMAIN\username

You need to ensure that you prefix the username with the Domain name.

The good points about this kind of setup is as follows:

  • Single username/password combination across entire network.
  • Enforces password policys
  • Likewise Open enables Linux, Unix and Mac authentication on a Microsoft network using Active Directory. A user can now interactively log in to the Linux, Unix or Mac machine using Active Directory credentials, and can access any kerberized services that the non-Windows machine hosts.

 

About these ads

7 Responses to "How to join Ubuntu 8.04 to Windows Active Directory (Domain)"

[...] “How to join Ubuntu 8.04 to Windows Active Directory (Domain) [...]

[...] How to join Ubuntu 8.04 to Windows Active Directory (Domain) « Life in code, apps and OS&#8217… – [...]

Heres some more information that might be helpful,

http://www.petenetlive.com/KB/Article/0000384.htm

Pete

LIAR!

update-rc.d: /etc/init.d/likewise-open: File does not exist!

You either need to add a “Create/download a shell script” step to your list, or follow Pete Long’s advice and “SUDO kate /etc/samba/lwiauthd.conf”, and add “winbind use default domain = yes” which actually worked for me! (Yeah, I sudo Kate. So sue me.)

@petelong – Thank you for the link to an updated way to add Ubuntu to an active directory domain.

@Steve Mattison – Are you for real? – I’m not a liar so don’t go accusing incase you hadn’t noticed this guide was for Ubuntu 8.04… I never wrote anywhere that I would expect it to still work for Ubuntu OS’s several releases into the future (We are on Ubuntu 11.04, nearly 11.10 now!!)… I wrote this guide over 3 years ago!!!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: