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/common | |
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/common')
-rw-r--r-- | source4/dsdb/common/dsdb_dn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/common/dsdb_dn.c b/source4/dsdb/common/dsdb_dn.c index 9023b0347a..e79718075b 100644 --- a/source4/dsdb/common/dsdb_dn.c +++ b/source4/dsdb/common/dsdb_dn.c @@ -340,6 +340,10 @@ WERROR dsdb_dn_la_to_blob(struct ldb_context *sam_ctx, WERROR werr; struct ldb_message_element val_el; struct drsuapi_DsReplicaAttribute drs; + struct dsdb_syntax_ctx syntax_ctx; + + /* use default syntax conversion context */ + dsdb_syntax_ctx_init(&syntax_ctx, sam_ctx, schema); /* we need a message_element with just one value in it */ v = data_blob_string_const(dsdb_dn_get_extended_linearized(mem_ctx, dsdb_dn, 1)); @@ -348,7 +352,7 @@ WERROR dsdb_dn_la_to_blob(struct ldb_context *sam_ctx, val_el.values = &v; val_el.num_values = 1; - werr = schema_attrib->syntax->ldb_to_drsuapi(sam_ctx, schema, schema_attrib, &val_el, mem_ctx, &drs); + werr = schema_attrib->syntax->ldb_to_drsuapi(&syntax_ctx, schema_attrib, &val_el, mem_ctx, &drs); W_ERROR_NOT_OK_RETURN(werr); if (drs.value_ctr.num_values != 1) { |