summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/tests
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-08-17 04:12:54 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-08-19 03:34:01 +0300
commitb5af7b9a1eb70db949c83fe6b55e402b82a2a9a4 (patch)
treefd923e99b286ee1667890f8ed0cb2a7e15911a11 /source4/dsdb/schema/tests
parentca809186137e259060032ef61d9d3e93cddad298 (diff)
downloadsamba-b5af7b9a1eb70db949c83fe6b55e402b82a2a9a4.tar.gz
samba-b5af7b9a1eb70db949c83fe6b55e402b82a2a9a4.tar.bz2
samba-b5af7b9a1eb70db949c83fe6b55e402b82a2a9a4.zip
s4-dsdb: Use dsdb_syntax_ctx in *_ldb_to_drsuapi functions
Diffstat (limited to 'source4/dsdb/schema/tests')
-rw-r--r--source4/dsdb/schema/tests/schema_syntax.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/schema/tests/schema_syntax.c b/source4/dsdb/schema/tests/schema_syntax.c
index 5dae097583..b5a6692a8d 100644
--- a/source4/dsdb/schema/tests/schema_syntax.c
+++ b/source4/dsdb/schema/tests/schema_syntax.c
@@ -101,6 +101,10 @@ static bool torture_test_syntax(struct torture_context *torture,
struct ldb_message_element el;
struct ldb_context *ldb = priv->ldb;
struct dsdb_schema *schema = priv->schema;
+ struct dsdb_syntax_ctx syntax_ctx;
+
+ /* use default syntax conversion context */
+ dsdb_syntax_ctx_init(&syntax_ctx, ldb, schema);
drs.value_ctr.num_values = 1;
drs.value_ctr.values = &val;
@@ -115,7 +119,7 @@ static bool torture_test_syntax(struct torture_context *torture,
torture_assert_data_blob_equal(torture, el.values[0], ldb_blob, "Incorrect conversion from DRS to ldb format");
- torture_assert_werr_ok(torture, syntax->ldb_to_drsuapi(ldb, schema, attr, &el, tmp_ctx, &drs2), "Failed to convert from ldb to DRS format");
+ torture_assert_werr_ok(torture, syntax->ldb_to_drsuapi(&syntax_ctx, attr, &el, tmp_ctx, &drs2), "Failed to convert from ldb to DRS format");
torture_assert(torture, drs2.value_ctr.values[0].blob, "No blob returned from conversion");