diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-17 04:12:54 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-19 03:34:01 +0300 |
commit | b5af7b9a1eb70db949c83fe6b55e402b82a2a9a4 (patch) | |
tree | fd923e99b286ee1667890f8ed0cb2a7e15911a11 /source4/dsdb/schema/tests | |
parent | ca809186137e259060032ef61d9d3e93cddad298 (diff) | |
download | samba-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.c | 6 |
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"); |