Monday 9 July 2012

Samba Server As Primary Domain Controller

Server
a.Operating System :- Fedora-15
b.Samba Server :- Samba version 3.0.23c-2 (included in Fedora Dvd)

Computer Name:-server 
Comment :- Domain Controller
Domain Name :- rizvi.com
Domain admin Name :- root
Ip Address :- 192.168.0.10


Client
a.Operating System :- Windows Xp Sp2

Computer Name :- wxp
Domain Name :-     rizvi.com
Ip Address :- 192.168.0.20

Configuration

Server
1.  

vi /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain    localhost
192.168.0.10    server


2.

vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=server


3.

vi /etc/sysconfig/network-scripts/ifcfg-eth0

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:0C:29:9E:C2:10
IPADDR=192.168.0.10
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

4.

vi /etc/samba/smb.conf


[global]
workgroup = rizvi.com
netbios name = Server
server string = 

security = user
encrypt passwords = yes


domain logons = yes


local master =yes
os level = 65
preferred master = yes


domain master = yes

wins support = yes

[homes]
   comment = Home Directories
   browseable = no
   writeable = yes


5.
add a group for Clents in /etc/group by typing:-
 groupadd -r DomainClientComputers

Register in that group Machine name to be join  in /etc/passwd by typing:-
 useradd -r -g DomainClientComputers -d /dev/null -s /dev/null vxp$

Add Machine Nane in /etc/samba/smbpasswd
 smbpasswd -a -m vxp

6.
Add root as a domain admin purpose in  /etc/samba/smbpasswd
smbpasswd -a root


7.

adduser sohail

Add sohail as a client user in /etc/samba/smbpasswd
smbpasswd -a sohail

8.
service smb restart

9.
chkconfig smb on

No comments:

Post a Comment

Next previous home