summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-08-17 04:20:46 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-08-19 03:34:02 +0300
commitc5ec1f3d9246f5737279340bf1755baf542d982b (patch)
treed76e261b37cfb77d1d77df9e6ebfcd330de134ab /source4/dsdb/common
parentb5af7b9a1eb70db949c83fe6b55e402b82a2a9a4 (diff)
downloadsamba-c5ec1f3d9246f5737279340bf1755baf542d982b.tar.gz
samba-c5ec1f3d9246f5737279340bf1755baf542d982b.tar.bz2
samba-c5ec1f3d9246f5737279340bf1755baf542d982b.zip
s4-dsdb: Use dsdb_syntax_ctx in *_drsuapi_to_ldb functions
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/dsdb_dn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/common/dsdb_dn.c b/source4/dsdb/common/dsdb_dn.c
index e79718075b..cb9cb299ce 100644
--- a/source4/dsdb/common/dsdb_dn.c
+++ b/source4/dsdb/common/dsdb_dn.c
@@ -379,12 +379,16 @@ WERROR dsdb_dn_la_from_blob(struct ldb_context *sam_ctx,
struct ldb_message_element new_el;
struct drsuapi_DsReplicaAttribute drs;
struct drsuapi_DsAttributeValue val;
+ struct dsdb_syntax_ctx syntax_ctx;
+
+ /* use default syntax conversion context */
+ dsdb_syntax_ctx_init(&syntax_ctx, sam_ctx, schema);
drs.value_ctr.num_values = 1;
drs.value_ctr.values = &val;
val.blob = blob;
- werr = schema_attrib->syntax->drsuapi_to_ldb(sam_ctx, schema, schema_attrib, &drs, mem_ctx, &new_el);
+ werr = schema_attrib->syntax->drsuapi_to_ldb(&syntax_ctx, schema_attrib, &drs, mem_ctx, &new_el);
W_ERROR_NOT_OK_RETURN(werr);
if (new_el.num_values != 1) {