1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-19 04:59:10 +03:00

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
This commit is contained in:
Andrew Bartlett
2009-08-13 09:58:38 +10:00
parent 2c23e7dc5a
commit 346aa6e093
3 changed files with 56 additions and 16 deletions

View File

@ -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)