summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-18 18:58:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-18 18:58:56 +1000
commit3408a2d18fa61e2a7e3b3e05cc3c454e5e15f2ce (patch)
tree1fdaefc34cbc20fc5a97612379149d1b89203c83 /source4/scripting
parentcfc2063f230491865edb8f73174e0b12ab4dc158 (diff)
downloadsamba-3408a2d18fa61e2a7e3b3e05cc3c454e5e15f2ce.tar.gz
samba-3408a2d18fa61e2a7e3b3e05cc3c454e5e15f2ce.tar.bz2
samba-3408a2d18fa61e2a7e3b3e05cc3c454e5e15f2ce.zip
Make a seperate template for the refint configuration too
(This used to be commit d2a527acc5ee6fe9b943657dc9c3ace920b2d619)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provision.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 301c6ef728..6eb47c8595 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1264,8 +1264,8 @@ def provision_backend(setup_dir=None, message=None,
{ "MEMBER_ATTR" : str(res[i]["lDAPDisplayName"][0]),
"MEMBEROF_ATTR" : str(target) })
- memberof_config += """overlay refint
-refint_attributes""" + refint_attributes
+ refint_config = read_and_sub_file(setup_path("refint.conf"),
+ { "LINK_ATTRS" : refint_attributes})
setup_file(setup_path("slapd.conf"), paths.slapdconf,
{"DNSDOMAIN": names.dnsdomain,
@@ -1273,7 +1273,8 @@ refint_attributes""" + refint_attributes
"DOMAINDN": names.domaindn,
"CONFIGDN": names.configdn,
"SCHEMADN": names.schemadn,
- "MEMBEROF_CONFIG": memberof_config})
+ "MEMBEROF_CONFIG": memberof_config,
+ "REFINT_CONFIG": refint_config})
setup_file(setup_path("modules.conf"), paths.modulesconf,
{"REALM": names.realm})