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