1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00
Andrew Bartlett bd8d9559bf param: Remove winbindd privileged socket directory option
This option is unused and has not been used since before Samba 4.3
when the source4/ winbindd code went away.

The associated dynconfig parameters used for the default are also removed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10066

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2017-01-22 18:30:12 +01:00

41 lines
1022 B
Python
Executable File

#!/usr/bin/env python
# this is useful for running samba tools with a different prefix
# for example:
# samba-tool $(scripting/devel/config_base /tmp/testprefix) join .....
import sys, os
vars = {
"ncalrpc dir" : "${PREFIX}/var/ncalrpc",
"private dir" : "${PREFIX}/private",
"lock dir" : "${PREFIX}/var/locks",
"pid directory" : "${PREFIX}/var/run",
"winbindd socket directory" : "${PREFIX}/var/run/winbindd",
"ntp signd socket directory" : "${PREFIX}/var/run/ntp_signd"
}
if len(sys.argv) != 2:
print("Usage: config_base BASEDIRECTORY")
sys.exit(1)
prefix = sys.argv[1]
config_dir = prefix + "/etc"
config_file = config_dir + "/smb.conf"
if not os.path.isdir(config_dir):
os.makedirs(config_dir, mode=0755)
if not os.path.isfile(config_file):
open(config_file, mode='w').close()
options = " --configfile=${PREFIX}/etc/smb.conf"
for v in vars:
options += " --option=%s=%s" % (v.replace(" ",""), vars[v])
options = options.replace("${PREFIX}", prefix)
print options