How to join ubuntu Workstation in Microsoft active directoy domain



Using-Microsoft Server-2003
------------------------------
----------


Host-Names               computer-2
Primary Dns Suffix-   domain1.local
Ip Add-                      192.168.2.14
Subnet Mask             255.255.255.0
Default Gateway        192.168.2.1
DNS-Server               192.168.2.14

Ubuntu System-
----------------------


Step-1 Check ping..


[root@server ashutosh]# ping 192.168.2.14
[root@server ashutosh]# ping computer-2.domain1.local

Step-2 Entry AD Domain IP nad Hostname


[root@server ashutosh]# vim /etc/hosts

192.168.2.14     computer-2


Step-3 Edit this file--

Note-
Comment Line No-11 (# hosts:files mdns4_minimal [NOTFOUND=return] dns mdns4)
Then Type blew New line-
'hosts: file dns mdns4'
[root@server ashutosh]#  vim /etc/nsswitch.conf

------------------------------------------------------------

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat
# hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:            file dns mdns4

networks:       files

protocols:      db files
services:        db files
ethers:           db files
rpc:                db files

netgroup:       nis

:wq (Save & Qiit)

------------------------------------------------------------
Step-4 Edit '/etc/resolve.conf' file
[root@server ashutosh]# vim /etc/resolve.conf       (Comment all line any type new line)

----------------------------------------------------------------------
search domain1.local
nameserver  192.168.2.14

----------------------------------------------------------------------

Step-5 Edit '/etc/dhcp3/dhclient.conf' file
[root@server ashutosh]# vim /etc/dhcp3/dhclient.conf    (Open file and type 2 new line )
     or
[root@server ashutosh]# vim /etc/dhcp/dhclient.conf     (Open file and type 2 new line )

----------------------------------------------------------------------

supersede   domain1.name   "domain1.local";
prepend     domain-name-servers   192.168.2.14;



:wq!
----------------------------------------------------------------------

Step-6 Open visudo file and edit..
[root@server ashutosh]# visudo             

----------------------------------------------------------------------

# User privilege specification
root    ALL=(ALL:ALL) ALL
DOMAIN1\\ashutosh    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%domain\\domain^users  ALL=(ALL)  ALL


# Press Ctrl+o and then prees Enter    (To Save)
# Press Ctrl+x                         (To Quit or Exit)

----------------------------------------------------------------------

Step-7 Now Install 'likewise' Pcakges-


Ubuntu 10.04---> Go to System--> Administration--> 'Synaptic-Package-MANAGER'---> Search Box Type- 'likewise' And Now install likewise package.

ubuntu 12.04 ---> open 'Ubuntu-Software-Center' --> Search Box Type- 'likewise' And Now install likewise package.

or
[root@server ashutosh]# apt-get install likewise* -y

Sucessfully install-

Step-8 Open-

Ubuntu 10.04--->Go to System--> Administration--> and open 'Active Directory membership'--> and open


ubuntu 12.04 ---> click top left corner 'Dash Home' --> Search Active Directory membership'--> and open


Now Active Directory membership Box Has been open  and type--

--------------------------------------------------
Computer Name:--->  ubuntu
Domain: ----------> domain1.local
-------------------------------------------------

Then open New box- 'Authentication Required'

--------------------------
User:  ashutosh
Password: *******
--------------------------

Note (Message)- Warning: System restart required  ...Close all boxes and restart system

Step-9


Again system on--->and click othe (login)

----------------------------------------------------
username: domain1\ashutosh

Password: *******
----------------------------------------------------

Now Sucessfully has been login Microsoft Active Directory Domain ...

 
I hope you like it.
So Enjoy............................!
______________________________________________________________________________________

Click Back..                                Click Home..
https://docs.google.com/forms/d/1iNRZlJJO6rBFizzPcFmyOTEtfkdjhdVRmpM74IbiT3o/viewform