1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

Make a seperate template for the refint configuration too

(This used to be commit d2a527acc5ee6fe9b943657dc9c3ace920b2d619)
This commit is contained in:
Andrew Bartlett 2008-07-18 18:58:56 +10:00
parent cfc2063f23
commit 3408a2d18f
3 changed files with 9 additions and 3 deletions

View File

@ -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})

View File

@ -0,0 +1,3 @@
overlay refint
refint_modifiersName cn=samba-admin,cn=samba
refint_attributes ${LINK_ATTRS}

View File

@ -40,6 +40,8 @@ include ${LDAPDIR}/modules.conf
defaultsearchbase ${DOMAINDN}
${REFINT_CONFIG}
${MEMBEROF_CONFIG}
database ldif