summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-09 14:23:12 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-09 06:39:20 +0200
commitef87b4e4f10eb7d5974cb0e0861648d537153a00 (patch)
tree047a5784c3c1a8dcef1e66e07f60c5a6c0674859 /source4/scripting
parent1a1f01ee7a754f2ecccce4f385fba6cb55d82518 (diff)
downloadsamba-ef87b4e4f10eb7d5974cb0e0861648d537153a00.tar.gz
samba-ef87b4e4f10eb7d5974cb0e0861648d537153a00.tar.bz2
samba-ef87b4e4f10eb7d5974cb0e0861648d537153a00.zip
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
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/samdb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index 7451b6c624..3355e9a589 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -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'''