How to join a Linux workstation to your domain

linux-penguinIf you have a Windows Active Directory domain then you may want to join your Linux workstations to it.  This article outlines the procedure using Likewise.

I've so far successfully joined Ubuntu 9.04 and Linux Mint 7.

Initial checks

Go to Applications > Accessories > Terminal.

  1. sudo vi /etc/resolv.conf
    1. Check that the following line refers to your DC IP address.
    2. nameserver
    3. Make sure that your AD server is the first nameserver in the list.
  2. sudo vi /etc/nsswitch.conf
    1. Change this line...
    2. hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
    3. to this...
    4. hosts: files dns [NOTFOUND=return]

Ensure that your DC has DNS installed and working.



  1. Browse to
    1. Download the 32-bit bitrock file for your flavour of Linux to your desktop.
  2. Right-click the bitrock file and choose Properties.
    1. Select the Permissions tab.
    2. Click Allow executing file as program and Close.
  3. Go to Applications > Accessories > Terminal.
    1. cd Desktop/
    2. sudo ./LikewiseIdentityServiceOpen-5.2.0.....installer
    3. Click Forward.
    4. Accept the agreement.
    5. Click Forward and Forward again.


Joining your domain

Remember to use your full domain name below.

  1. sudo /opt/likewise/bin/domainjoin-cli join yourdomain.local Administrator
  2. Enter the Administrator password.
  3. Restart the workstation.


    Using a domain account

    You can now log on to your Linux workstation with an Active Directory domain account.

    Enter your username as follows...

    • domain\username



    You should make sure that you can reach your DNS server and your AD server.  You could also revisit the initial checks section above.