[PATCH 2/2] s4:provision - Disable subtree rename in FDS to enable entrydn attribute.
Endi S. Dewata
edewata at redhat.com
Fri Mar 26 19:25:18 MDT 2010
---
source4/scripting/python/samba/provisionbackend.py | 3 +++
source4/setup/fedorads-subtree-rename.ldif | 4 ++++
source4/setup/fedorads.inf | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
create mode 100644 source4/setup/fedorads-subtree-rename.ldif
diff --git a/source4/scripting/python/samba/provisionbackend.py b/source4/scripting/python/samba/provisionbackend.py
index 7f6926e..b0187e7 100644
--- a/source4/scripting/python/samba/provisionbackend.py
+++ b/source4/scripting/python/samba/provisionbackend.py
@@ -574,6 +574,7 @@ class FDSBackend(LDAPBackend):
self.sasl_ldif = os.path.join(self.ldapdir, "fedorads-sasl.ldif")
self.dna_ldif = os.path.join(self.ldapdir, "fedorads-dna.ldif")
self.pam_ldif = os.path.join(self.ldapdir, "fedorads-pam.ldif")
+ self.subtree_rename_ldif = os.path.join(self.ldapdir, "fedorads-subtree-rename.ldif")
self.refint_ldif = os.path.join(self.ldapdir, "fedorads-refint.ldif")
self.linked_attrs_ldif = os.path.join(self.ldapdir, "fedorads-linked-attributes.ldif")
self.index_ldif = os.path.join(self.ldapdir, "fedorads-index.ldif")
@@ -634,6 +635,8 @@ class FDSBackend(LDAPBackend):
setup_file(self.setup_path("fedorads-pam.ldif"), self.pam_ldif)
+ setup_file(self.setup_path("fedorads-subtree-rename.ldif"), self.subtree_rename_ldif)
+
lnkattr = self.schema.linked_attributes()
refint_config = open(self.setup_path("fedorads-refint-delete.ldif"), 'r').read()
diff --git a/source4/setup/fedorads-subtree-rename.ldif b/source4/setup/fedorads-subtree-rename.ldif
new file mode 100644
index 0000000..0970171
--- /dev/null
+++ b/source4/setup/fedorads-subtree-rename.ldif
@@ -0,0 +1,4 @@
+dn: cn=config,cn=ldbm database,cn=plugins,cn=config
+changetype: modify
+replace: nsslapd-subtree-rename-switch
+nsslapd-subtree-rename-switch: off
diff --git a/source4/setup/fedorads.inf b/source4/setup/fedorads.inf
index 1243a06..bb9724a 100644
--- a/source4/setup/fedorads.inf
+++ b/source4/setup/fedorads.inf
@@ -31,6 +31,7 @@ ConfigFile = ${LDAPDIR}/fedorads-partitions.ldif
ConfigFile = ${LDAPDIR}/fedorads-sasl.ldif
ConfigFile = ${LDAPDIR}/fedorads-dna.ldif
ConfigFile = ${LDAPDIR}/fedorads-pam.ldif
+ConfigFile = ${LDAPDIR}/fedorads-subtree-rename.ldif
ConfigFile = ${LDAPDIR}/fedorads-refint.ldif
ConfigFile = ${LDAPDIR}/fedorads-linked-attributes.ldif
ConfigFile = ${LDAPDIR}/fedorads-index.ldif
--
1.6.6.1
------=_Part_10336_672241778.1269994096782--
More information about the samba-technical
mailing list