summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-13 09:58:38 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-17 09:50:56 +1000
commit346aa6e093508f4e2918b20df452398ef332e416 (patch)
tree43d87439a929cfa2560b8d94820f085c03aa6589 /source4/scripting/python/samba
parent2c23e7dc5a5d305406a156402ec805ed05e5a11f (diff)
downloadsamba-346aa6e093508f4e2918b20df452398ef332e416.tar.gz
samba-346aa6e093508f4e2918b20df452398ef332e416.tar.xz
samba-346aa6e093508f4e2918b20df452398ef332e416.zip
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
Diffstat (limited to 'source4/scripting/python/samba')
-rw-r--r--source4/scripting/python/samba/samdb.py7
1 files changed, 5 insertions, 2 deletions
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)