6
enable privileges = yes
7
#interfaces = 192.168.5.11
8
#username map = /etc/samba/smbusers
9
server string = Samba Server %v
11
encrypt passwords = Yes
13
#pam password change = no
14
#obey pam restrictions = No
17
#unix password sync = no
18
#ldap passwd sync = yes
21
unix password sync = yes
23
passwd program = /usr/sbin/smbldap-passwd -u "%u"
24
passwd chat = "Changing *\nNew password*" %n\n "*Retype new password*" %n\n"
28
log file = /var/log/samba/log.%U
31
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
32
mangling method = hash2
34
Unix charset = ISO8859-1
36
logon script = logon.bat
44
preferred master = Yes
46
# passdb backend = ldapsam:"ldap://ldap1.company.com ldap://ldap2.company.com"
47
passdb backend = ldapsam:ldap://127.0.0.1/
48
ldap admin dn = cn=Manager,dc=company,dc=com
49
#ldap admin dn = cn=samba,ou=DSA,dc=company,dc=com
50
ldap suffix = dc=company,dc=com
51
ldap group suffix = ou=Groups
52
ldap user suffix = ou=Users
53
ldap machine suffix = ou=Computers
54
#ldap idmap suffix = ou=Idmap
55
add user script = /usr/sbin/smbldap-useradd -m "%u"
57
delete user script = /usr/sbin/smbldap-userdel "%u"
58
add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
59
add group script = /usr/sbin/smbldap-groupadd -p "%g"
60
#delete group script = /usr/sbin/smbldap-groupdel "%g"
61
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
62
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
63
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
65
# printers configuration
66
#printer admin = @"Print Operators"
70
#force create mode = 0640
71
#force directory mode = 0750
76
guest account = nobody
77
map to guest = Bad User
78
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
79
show add printer wizard = yes
80
; to maintain capital letters in shortcuts in any of the profile folders:
82
short preserve case = yes
86
path = /home/netlogon/
99
# next line is a great way to secure the profiles
101
# next line allows administrator to access all profiles
102
#valid users = %U "Domain Admins"
105
comment = Network Printers
106
#printer admin = @"Print Operators"
113
print command = /usr/bin/lpr -P%p -r %s
114
lpq command = /usr/bin/lpq -P%p
115
lprm command = /usr/bin/lprm -P%p %j
116
# print command = /usr/bin/lpr -U%U@%M -P%p -r %s
117
# lpq command = /usr/bin/lpq -U%U@%M -P%p
118
# lprm command = /usr/bin/lprm -U%U@%M -P%p %j
119
# lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
120
# lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
121
# queuepause command = /usr/sbin/lpc -U%U@%M stop %p
122
# queueresume command = /usr/sbin/lpc -U%U@%M start %p
125
path = /home/printers
129
valid users = @"Print Operators"
130
write list = @"Print Operators"
132
directory mask = 0775