-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmb.conf.tmpl
43 lines (34 loc) · 944 Bytes
/
smb.conf.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[global]
workgroup = {{.Workgroup}}
realm = {{.Realm}}
netbios name = {{.NetbiosName}}
security = ADS
{{- if .DnsForwarder }}
dns forwarder = {{.DnsForwarder}}
{{- end}}
idmap config * : backend = tdb
idmap config *:range = 50000-1000000
template homedir = /home/%D/%U
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = false
winbind nss info = rfc2307
winbind enum users = yes
winbind enum groups = yes
vfs objects = acl_xattr
map acl inherit = Yes
store dos attributes = Yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
{{range .SambaShareList}}
[{{.Name}}]
comment = {{.Comment}}
path = {{.Path}}
valid users = {{range .ValidUsers}}@"{{.}}" {{end}}
guest ok = {{.GuestOk}}
writable = {{.Writable}}
force user = {{.ForceUser}}
force group = {{.ForceGroup}}
{{end}}