From 346aa6e093508f4e2918b20df452398ef332e416 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 13 Aug 2009 09:58:38 +1000 Subject: s4:schema Provide a way to reference a loaded schema between ldbs This allows us to load the schema against one ldb context, but apply it to another. This will be useful in the provision script, as we need the schema before we start the LDAP server backend. Adnrew Bartlett --- source4/scripting/python/samba/samdb.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/scripting/python/samba') diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 508449a1c6..c7b42b612a 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -216,8 +216,11 @@ userPassword:: %s """ glue.samdb_set_domain_sid(self, sid) - def attach_schema_from_ldif(self, pf, df): - glue.dsdb_attach_schema_from_ldif(self, pf, df) + def set_schema_from_ldif(self, pf, df): + glue.dsdb_set_schema_from_ldif(self, pf, df) + + def set_schema_from_ldb(self, ldb): + glue.dsdb_set_schema_from_ldb(self, ldb) def convert_schema_to_openldap(self, target, mapping): return glue.dsdb_convert_schema_to_openldap(self, target, mapping) -- cgit