Difference between revisions of "1.2 smb.conf BDC"

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''1.2: smb.conf BDC'''
+
[[1.0: Configuring Samba]]
 +
 
 +
[[2.0: Configuring LDAP]]
 +
 
 +
[[3.0: Initialization LDAP Database]]
 +
 
 +
[[4.0: User Management]]
 +
 
 +
[[5.0: Heartbeat HA Configuration]]
 +
 
 +
[[6.0: DRBD]]
 +
 
 +
[[7.0: BIND DNS]]
 +
 
 +
----
 +
 
 +
 
 +
<u>'''Table of Contents'''</u>
 +
 +
[[1.1 smb.conf PDC]]
 +
 
 +
[[1.2 smb.conf BDC]]
 +
 
 +
[[1.3 /etc/hosts]]
 +
 
 +
[[1.4 Samba Security]]
  
  
Line 59: Line 84:
 
   browseable = yes
 
   browseable = yes
 
   read only = no
 
   read only = no
 
+
 
  [profiles]
 
  [profiles]
 
   path = /data/samba/profiles
 
   path = /data/samba/profiles

Latest revision as of 13:31, 25 January 2007

1.0: Configuring Samba

2.0: Configuring LDAP

3.0: Initialization LDAP Database

4.0: User Management

5.0: Heartbeat HA Configuration

6.0: DRBD

7.0: BIND DNS



Table of Contents

1.1 smb.conf PDC

1.2 smb.conf BDC

1.3 /etc/hosts

1.4 Samba Security


[root@node2 ~]# mkdir /data
[root@node2 ~]# vi /etc/samba/smb.conf
# # Backup Domain Controller
# # Global parameters

[global]
unix charset = LOCALE
workgroup = DDESIGN
netbios name = node2
#passdb backend = ldapsam:ldap://127.0.0.1
#passdb backend = ldapsam:"ldap://192.168.0.2 ldap://192.168.0.3"
passdb backend = ldapsam:"ldap://node2.differentialdesign.org ldap://node1.differentialdesign.org"
username map = /etc/samba/smbusers
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
name resolve order = wins bcast hosts
printcap name = CUPS
show add printer wizard = No
logon script = %u.bat
#logon path = \\192.168.0.4\profiles\%u
logon path = \\nodes.differentialdesign.org\profiles\%u
logon drive = H:
domain logons = Yes
os level = 63
domain master = No
wins server = node1.differentialdesign.org
ldap suffix = dc=differentialdesign,dc=org
ldap machine suffix = ou=Computers,ou=Users
ldap user suffix = ou=People,ou=Users
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=sambaadmin,dc=differentialdesign,dc=org
utmp = Yes
idmap backend = ldap://node1.differentialdesign.org
idmap uid = 10000-20000
idmap gid = 10000-20000
printing = cups

#========================Share Definitions=========================

[homes]
 comment = Home Directories
 valid users = %S
 browseable = yes
 writable = yes
 create mask = 0600
 directory mask = 0700

[netlogon]
 comment = Network Logon Service
 path = /data/samba/netlogon
 writeable = yes
 browseable = yes
 read only = no

[profiles]
 path = /data/samba/profiles
 writeable = yes
 browseable = no
 read only = no
 create mode = 0777
 directory mode = 0777

[Documents]
 comment = share to test samba
 path = /data/documents
 writeable = yes
 browseable = yes
 read only = no
 valid users = "@Domain Users"