diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-10 08:44:04 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-10 10:18:28 +1000 |
commit | fdd07e87c6fc7a4a0ea7c6f99080d78e526042e6 (patch) | |
tree | 1d5daf395827c0b602669bd0ee7bfdff3a7b6a34 /source4/dsdb/pydsdb.c | |
parent | 1d1bdc315b4619f0ca5b2a0db602cbe283f8dca8 (diff) | |
download | samba-fdd07e87c6fc7a4a0ea7c6f99080d78e526042e6.tar.gz |
s4-dsdb: Explain better what records are written during schema set
This is controlled by setting write_indices_and_attributes.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/pydsdb.c')
-rw-r--r-- | source4/dsdb/pydsdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c index 9023d69054b..39229f487f5 100644 --- a/source4/dsdb/pydsdb.c +++ b/source4/dsdb/pydsdb.c @@ -873,9 +873,9 @@ static PyObject *py_dsdb_set_schema_from_ldb(PyObject *self, PyObject *args) struct ldb_context *from_ldb; struct dsdb_schema *schema; int ret; - char write_attributes = true; + char write_indices_and_attributes = true; if (!PyArg_ParseTuple(args, "OO|b", - &py_ldb, &py_from_ldb, &write_attributes)) + &py_ldb, &py_from_ldb, &write_indices_and_attributes)) return NULL; PyErr_LDB_OR_RAISE(py_ldb, ldb); @@ -888,7 +888,7 @@ static PyObject *py_dsdb_set_schema_from_ldb(PyObject *self, PyObject *args) return NULL; } - ret = dsdb_reference_schema(ldb, schema, write_attributes); + ret = dsdb_reference_schema(ldb, schema, write_indices_and_attributes); PyErr_LDB_ERROR_IS_ERR_RAISE(py_ldb_get_exception(), ret, ldb); Py_RETURN_NONE; |