Tuesday, April 6, 2010

How to add Ubuntu workstation to Windows Domain


I have tried few deferent ways to connect to the Ubuntu workstation to windows 2008 dc and after little research I found a way using likewise open.
Likewise open is free tool that can add Mac Linux or UNIX like OS to Windows Domain. You should visit following site for more details

http://www.likewise.com/index.php
This is the step I Have done. This was done in a Ubuntu 9.10 workstation.
For this I use a static IP address if you're using a DHCP check the configuration equal to you network In my environment im using a windows 2008 that has the following domain name
knights. Local
01. To assign a static IP address

sudo gedit /etc/network/interfaces
#keep the following line
auto lo
iface lo inet loopback
#add the IP address to the network card one
auto eth0
Iface eth0 inet static
address xxxx.xxxx.xxxx.xxxx
netmask xxxx.xxxx.xxxx.xxxx
gateway xxxx.xxxx.xxxx.xxxx
02. then add the DNS to the resolv.conf file
sudo gedit /etc/resolv.conf
# Generated by Network Manager
domain knghts.local
search knights.local
nameserver xxxx.xxxx.xxxx.xxxx
03. Change the host as dns winbind in nsswitch.conf file
sudo gedit /etc/nsswitch.conf
# /etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: file dns winbind
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
04. Install likewise open
sudo apt-get install likewise-open
05. now add the pc to domain
sudo domainjoin –cli join fqdn admini user
Eg ; sudo domainjoin –cli join knights.local administrator

After that restart the pc and you can log with your windows domain user to the Ubuntu workstation.


0 comments:

Post a Comment