diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 02:32:23 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 02:46:57 +0200 |
commit | 94e06fe2032b0143939abd85044b5c3ccddefe70 (patch) | |
tree | 887f6600128d3e32de674e60e75ee74bd0262766 /source4/scripting/python/samba/schema.py | |
parent | d3d7ff66d4a7952a50e7d9175528985358cb3522 (diff) | |
download | samba-94e06fe2032b0143939abd85044b5c3ccddefe70.tar.gz samba-94e06fe2032b0143939abd85044b5c3ccddefe70.tar.xz samba-94e06fe2032b0143939abd85044b5c3ccddefe70.zip |
Some more formatting fixes, move schema related functions from Ldb to Schema.
Diffstat (limited to 'source4/scripting/python/samba/schema.py')
-rw-r--r-- | source4/scripting/python/samba/schema.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/schema.py b/source4/scripting/python/samba/schema.py index 2495cf2e0c..9e8db65d6e 100644 --- a/source4/scripting/python/samba/schema.py +++ b/source4/scripting/python/samba/schema.py @@ -106,7 +106,10 @@ class Schema(object): # We don't actually add this ldif, just parse it prefixmap_ldif = "dn: cn=schema\nprefixMap:: %s\n\n" % self.prefixmap_data - self.ldb.set_schema_from_ldif(prefixmap_ldif, self.schema_data) + self.set_from_ldif(prefixmap_ldif, self.schema_data) + + def set_from_ldif(self, pf, df): + dsdb.dsdb_set_schema_from_ldif(self.ldb, pf, df) def write_to_tmp_ldb(self, schemadb_path): self.ldb.connect(url=schemadb_path) |