1 #======================= Global Settings =====================================
2 [global]
3 ldap server = localhost
4 ldap port = 389
5 ldap suffix = dc=example,dc=com
6 ldap admin dn = cn=smbpasswd,ou=Apps,dc=example,dc=com
8 ldap user suffix = ou=People
9 ldap group suffix = ou=Groups
10 ldap machine suffix = ou=Computers
11 ldap passwd sync = Yes
13 workgroup = EXAMPLE
14 netbios name = PDC
15 server string = Samba server on %h (v. %v)
16 #realm = PDC.EXAMPLE.TLD
17 announce version = 4.8
18 time server = Yes
20 log file = /var/log/samba/log.%m
21 max log size = 50
23 security = user
24 hosts allow = 192.168.1. 127.
25 encrypt passwords = yes
26 null passwords = No
27 min passwd length = 6
28 smb passwd file = /etc/samba/smbpasswd
29 socket options = TCP_NODELAY
30 os level = 254
31 nt acl support = No
32 passdb backend = ldapsam:ldap://localhost
34 domain master = yes
35 preferred master = yes
36 domain logons = yes
37 dns proxy = no
39 #dos charset = CP866
40 #unix charset = KOI8-R
41 #display charset = KOI8-R
42 use sendfile = yes
43 preserve case = Yes
44 short preserve case = Yes
45 case sensitive = Yes
46 hide dot files = Yes
48 #============================ Share Definitions ==============================
49 [homes]
50 comment = Home Directory for '%u'
51 browseable = no
52 writable = yes
54 # Un-comment the following and create the netlogon directory for Domain Logons
55 [netlogon]
56 comment = Network Logon Service
57 path = /var/lib/samba/netlogon
58 guest ok = yes
59 browsable = no
60 writable = no
62 #Uncomment the following 2 lines if you would like your login scripts to
63 #be created dynamically by ntlogon (check that you have it in the correct
64 #location (the default of the ntlogon rpm available in contribs)
65 ;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
66 ;root postexec = rm -f /var/lib/samba/netlogon/%U.bat
68 # Un-comment the following to provide a specific roving profile share
69 # the default is to use the user's home directory
70 ;[Profiles]
71 ; path = /var/lib/samba/profiles
72 ; browseable = no
73 ; guest ok = yes