summaryrefslogtreecommitdiffstats
path: root/base/all/root/scripts/cluster_configure/templates/rhel/50.samba/3.4#/files/etc/samba/smb.conf
blob: 4f8f8d0444d77df7dc49c303c47ff9b34ec8aebf (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
[global]
	# enable clustering
	clustering=yes
	ctdb:registry.tdb=yes
	ctdbd socket = !!|ctdb_socket()!!

	security = !!|"ADS" if self.config.get("package:samba", "auth_method") == "winbind" else "USER"!!
	auth methods = guest sam !!|"winbind" if self.config.get("package:samba", "auth_method") == "winbind" else ""!!

	netbios name = !!cluster!!
	workgroup = !!workgroup!!
	realm = !!realm!!
	server string = "Clustered Samba"
	disable netbios = yes
	disable spoolss = yes
	fileid:mapping = fsname
	use mmap = yes
	gpfs:sharemodes = yes
	gpfs:leases = yes
	passdb backend = tdbsam
	preferred master = no
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap backend = tdb2
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap:cache = no
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap gid = 10000000-11000000
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap uid = 10000000-11000000
	kernel oplocks = yes
	syslog = 1
	host msdfs = no
	notify:inotify = no
	vfs objects = shadow_copy2 syncops gpfs fileid
	shadow:snapdir = .snapshots
	shadow:fixinodes = yes
	wide links = no
	smbd:backgroundqueue = False
	read only = no
	use sendfile = yes
	strict locking = yes
	posix locking = yes
	large readwrite = yes
	force unknown acl user = yes
	nfs4:mode = special
	nfs4:chown = yes
	nfs4:acedup = merge
	nfs4:sidmap = /etc/samba/sidmap.tdb
	map readonly = no
	ea support = yes
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!groupdb:backend = tdb
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!winbind:online check timeout = 30
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!template shell = /usr/bin/rssh
	!!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!template homedir = !!chroot_dir!!
	dmapi support = no

!!%export:format("[%s]\n\tpath = %s\n\tcomment = %s\n\tguest ok = yes\n\tread only = no\n\tbrowseable = yes\n\n", ["name", "directory", "comment"])!!