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:
parent
cfc2063f23
commit
3408a2d18f
@ -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})
|
||||
|
||||
|
3
source4/setup/refint.conf
Normal file
3
source4/setup/refint.conf
Normal file
@ -0,0 +1,3 @@
|
||||
overlay refint
|
||||
refint_modifiersName cn=samba-admin,cn=samba
|
||||
refint_attributes ${LINK_ATTRS}
|
@ -40,6 +40,8 @@ include ${LDAPDIR}/modules.conf
|
||||
|
||||
defaultsearchbase ${DOMAINDN}
|
||||
|
||||
${REFINT_CONFIG}
|
||||
|
||||
${MEMBEROF_CONFIG}
|
||||
|
||||
database ldif
|
||||
|
Loading…
x
Reference in New Issue
Block a user