Thursday, April 8, 2010

How to add a linux machine to Windows domain

This Article shows how to add a Ubuntu machine to Windows Domain
Here we are going to use a open source Tool (Likewise).
STEP1:
Install the package
#apt-get install likewise-open5
STEP 2:
Go to Terminal
#domainjoin-cli join domainname Administrator
Example:
domainjoin-cli join antonysunny.com Administrator
In the above example domainname = antonysunny.com
It will prompt for Admin Password which has permission to join to domain
Make sure the system gets restarted
STEP 3:
Inorder to login Enter the username as domain\user
Example:ANTONYSUNNY\user
In the above example ANTONYSUNNY is the NETBIOS name for the domain name

Done
TROUBLESHOOTING:
->Inorder to make likewise-open use a default domain add the following to /etc/samba/lwiauthd.conf
winbind use default domain = yes
->Restart /etc/init.d/likewise-open restart
->Inorder to unjoin from domain Go to terminal
#domainjoin-cli leave

No comments: