mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
s4-pydsdb: Provide control of if we should write index attributes when reloading a schema
This allows us to carefully control the loading of the schema. Andrew Bartlett
This commit is contained in:
@ -608,11 +608,11 @@ accountExpires: %u
|
||||
def load_partition_usn(self, base_dn):
|
||||
return dsdb._dsdb_load_partition_usn(self, base_dn)
|
||||
|
||||
def set_schema(self, schema):
|
||||
self.set_schema_from_ldb(schema.ldb)
|
||||
def set_schema(self, schema, write_attributes=True):
|
||||
self.set_schema_from_ldb(schema.ldb, write_attributes=write_attributes)
|
||||
|
||||
def set_schema_from_ldb(self, ldb_conn):
|
||||
dsdb._dsdb_set_schema_from_ldb(self, ldb_conn)
|
||||
def set_schema_from_ldb(self, ldb_conn, write_attributes=True):
|
||||
dsdb._dsdb_set_schema_from_ldb(self, ldb_conn, write_attributes)
|
||||
|
||||
def dsdb_DsReplicaAttribute(self, ldb, ldap_display_name, ldif_elements):
|
||||
'''convert a list of attribute values to a DRSUAPI DsReplicaAttribute'''
|
||||
|
Reference in New Issue
Block a user