diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-03-05 16:52:11 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-03-05 16:52:11 +1100 |
commit | 17aac8cad2b3fe4b23eaebd869b1538735a1954a (patch) | |
tree | b9fbe27b174e626c0791ae08f55cd475789598f1 /source4/scripting/python/samba/samdb.py | |
parent | 41760c18bdab20d526d32568531bdf7c88272879 (diff) | |
download | samba-17aac8cad2b3fe4b23eaebd869b1538735a1954a.tar.gz samba-17aac8cad2b3fe4b23eaebd869b1538735a1954a.tar.xz samba-17aac8cad2b3fe4b23eaebd869b1538735a1954a.zip |
Remove ad2oLschema, insted call it directly from provision-backend
This removes a level of indirection via external binaries in the
provision-backend code, and also makes better use of our internal code
for loading schema from an LDIF file.
Remaining to do: Sort the output again, as the load from LDIF is
unsorted (also needed because the normal LDB load from sorted input is too slow
anyway, and is only needed here).
Andrew Bartlett
Diffstat (limited to 'source4/scripting/python/samba/samdb.py')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 614970d3ec5..881f5912fbc 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -198,7 +198,10 @@ userAccountControl: %u glue.samdb_set_domain_sid(self, sid) def attach_schema_from_ldif(self, pf, df): - glue.dsdb_attach_schema_from_ldif_file(self, pf, df) + glue.dsdb_attach_schema_from_ldif(self, pf, df) + + def convert_schema_to_openldap(self, target, mapping): + return glue.dsdb_convert_schema_to_openldap(self, target, mapping) def set_invocation_id(self, invocation_id): """Set the invocation id for this SamDB handle. |