45 lines
984 B
Django/Jinja
Executable File
45 lines
984 B
Django/Jinja
Executable File
[global]
|
|
workgroup = {{ smb_workgroup }}
|
|
realm = {{ smb_realm }}
|
|
netbios name = {{ ansible_hostname }}
|
|
security = ADS
|
|
#encrypt passwords = yes
|
|
dns forwarder = {{ smb_dns_servers }}
|
|
|
|
idmap config * :backend = tdb
|
|
idmap config *:range = 50000-1000000
|
|
template homedir = /home/%D/%U
|
|
template shell = /bin/bash
|
|
|
|
winbind use default domain = yes
|
|
winbind offline logon = false
|
|
winbind nss info = rfc2307
|
|
winbind enum users = yes
|
|
winbind enum groups = yes
|
|
winbind offline logon = yes
|
|
|
|
vfs objects = acl_xattr
|
|
map acl inherit = Yes
|
|
store dos attributes = Yes
|
|
|
|
#### Public Share ####
|
|
[{{ public_share_name }}]
|
|
path = {{ public_share_path }}
|
|
browsable =yes
|
|
writable = yes
|
|
guest ok = yes
|
|
read only = no
|
|
acl_xattr:ignore system acl = yes
|
|
|
|
#### Private Share ####
|
|
[{{ private_share_name }}]
|
|
path = {{ private_share_path }}
|
|
valid users = @{{ samba_group_name }}
|
|
guest ok = no
|
|
writable = yes
|
|
browsable = yes
|
|
create mask = 0700
|
|
directory mask = 0700
|
|
acl_xattr:ignore system acl = yes
|
|
|