Thomas Vogt’s IT Blog

knowledge is power …

Join RedHat Linux to Microsoft Active Directory


To login as a Microsoft Active Directory (AD) user on a RedHat Linux system the Linux server has to be joined on the AD. There are several ways to do that, one solution is to use Likewise Open as described here.
Likewise is an open-source community project that enables core AD authentication for Linux.

– RedHat Linux Enterprise (RHEL) 5.4
– Microsoft Active Directory 2003
– Likewise Open 6.0


The software is available and downloadable after registration on Likewise website

# chmod +x LikewiseOpen-
# ./LikewiseOpen-

Join Linux system to AD Domain

# domainjoin-cli join mydomain.local Administrator

Joining to AD Domain: mydomain.local
With Computer DNS Name: myserver.mydomain.local
Administrator@MYDOMAIN.LOCAL’s password:
Enter Administrator@MYDOMAIN.LOCAL’s password:

Login as Domain User

With PuTTY (single backslash)

login as: mydomain\domain_user
Using keyboard-interactive authentication.
/usr/bin/xauth: creating new authority file /home/local/MYDOMAIN/domain_user/.Xauthority

On a Unix command line (double backslash)
$ ssh -l mydomain\\domain_user myserver.mydomain.local

-sh-3.2$ whoami

# domainjoin-cli query
Name = myserver
Distinguished Name = CN=MYSERVER,CN=Computers,DC=mydomain,DC=local

Check Linux server on AD console

Linux server as new computer account in AD

Useful information


July 28, 2010 - Posted by | Linux, RedHat, Windows

1 Comment »

  1. Note the Likewise URL does not work, appears this solution is dead or sold off. I found Centrify Express ( to work quite well — does a clean and click join of UNIX, Linux and Mac to Active Directory, plus it also does SaaS and iOS/Android although I did not test those out.

    Comment by JakeS | July 8, 2013 | Reply

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: