Lets see how to add the Ubuntu workstation in Microsoft Active Directory Domain, in this article i am using Windows 2003 server but you can also use windows 2008 server as well
Let me just show you the configuration of my server
As you can see i have DNS installed on the same server and DHCP is not enabled
Now let us go to Ubuntu Workstation, on Ubuntu we have to edit some files to make sure that the Ubuntu Workstation is able to ping the server using the IP address and Fully qualified domain name (FQDN)
192.168.2.14 is my server IP address and i am able to ping it successfully
But i cannot ping the FQDN computer2.domain.local
To over come this problem we have to edit couple of files here
To do that click on Applications–Accessories–Terminal
Type in sudo gedit /etc/hosts and hit enter, put your sudo password
once the file opens up we are going to add the IP address and Host name in this file
Put the IP address of your server and FQDN, e.g 192.168.2.14 Computer2
Click on save and close the file
Next file we have to edit is sudo gedit /etc/nsswitch.conf
In this file there is a line as below
hosts: files mdns4_minimal (NOTFOUND=return) dns mdns4
Add # in the beginning of host to omit this out and type in the below line
hosts: files dns mdns4
Click on save and close the file
Now try to ping the FQDN, in my case since i am not using DHCP so we need to edit 2 more files “resolv.conf” and “dhclient.conf”
Go to terminal and type in sudo gedit /etc/resolv.conf, in this add “#” in the begining of each line
#domain localdomain
#search localdomain
#Nameserver 192.168.92.2
#search localdomain
#Nameserver 192.168.92.2
Add search and nameserver as below
search domain1.local
nameserver 192.168.2.14
nameserver 192.168.2.14
Note : put your domain name and the DNS server IP
Save this file and close it
What happens is, the file resolv.conf is going to be overwritten as soon as we reboot the workstation, so to get rid of that problem we need to edit one more file “dhclient.conf”
open terminal and type sudo gedit /etc/dhcp3/dhclient.conf and hit enter
In this file we have to add below lines
supersede domain-name “domain1.local”;
prepend domain-name-servers 192.168.2.14;
prepend domain-name-servers 192.168.2.14;
Note : Make sure you add your domain name and proper IP address not mine
Click on save and close the file
Now if you need your domain user to be an ADMIN, we need to edit one more file sudo visido
Just below the line # User privilege specification — Type your your domainname\username ALL=(ALL) ALL
If you want to add a group go to line # member of the admin group may gain root privileges
Type %domainname\domain^users ALL=(ALL) ALL
Press Ctrl Key and enter, it will write the changes and press ctrl+X to exit
Now all we have to do is go to Synaptic Package Manager
Type in likewise and look for likewise-open-gui
Choose the package likewise-open-gui and click Mark for installation
Mark additional required changes
Click on APPLY
Click on Apply again
Once likewise is installed, go in to SYSTEM you will see a new option–Active Directory Membership, click on it
Once it opens up, type your domain name and provide the active directory credentials
Restart the Ubuntu workstation ! E
No comments:
Post a Comment