From 18eba021e7b7e0b9a6fb228c80bee639965dab33 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 11 Nov 2011 16:32:05 +0100 Subject: s4:python/samba/schema: pass down the schema_dn to set_from_ldif() metze --- source4/scripting/python/samba/schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/schema.py b/source4/scripting/python/samba/schema.py index 8bac26e24f..216cb0ff27 100644 --- a/source4/scripting/python/samba/schema.py +++ b/source4/scripting/python/samba/schema.py @@ -116,10 +116,10 @@ class Schema(object): self.prefixmap_data = b64encode(self.prefixmap_data) # We don't actually add this ldif, just parse it - prefixmap_ldif = "dn: cn=schema\nprefixMap:: %s\n\n" % self.prefixmap_data - self.set_from_ldif(prefixmap_ldif, self.schema_data) + prefixmap_ldif = "dn: %s\nprefixMap:: %s\n\n" % (self.schemadn, self.prefixmap_data) + self.set_from_ldif(prefixmap_ldif, self.schema_data, self.schemadn) - def set_from_ldif(self, pf, df): + def set_from_ldif(self, pf, df, dn): dsdb._dsdb_set_schema_from_ldif(self.ldb, pf, df) def write_to_tmp_ldb(self, schemadb_path): -- cgit