summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-11 16:32:05 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 09:46:26 +0100
commit18eba021e7b7e0b9a6fb228c80bee639965dab33 (patch)
tree142252b72c0d6afe37b098e99e2693dbb418ca20 /source4/scripting/python
parent54a9a47a9100ffbe185b35f4067b08fc3374205a (diff)
downloadsamba-18eba021e7b7e0b9a6fb228c80bee639965dab33.tar.gz
samba-18eba021e7b7e0b9a6fb228c80bee639965dab33.tar.bz2
samba-18eba021e7b7e0b9a6fb228c80bee639965dab33.zip
s4:python/samba/schema: pass down the schema_dn to set_from_ldif()
metze
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/schema.py6
1 files changed, 3 insertions, 3 deletions
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):