From: Stefan Metzmacher Date: Sat, 25 Jan 2014 10:14:36 +0000 (+0100) Subject: s4:librpc/rpc: use dcerpc_binding_get_object() in order to pass the object to the... X-Git-Tag: ldb-1.1.17~501 X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=547111b2cf94d18ae7972308161d64b5504ee9fd s4:librpc/rpc: use dcerpc_binding_get_object() in order to pass the object to the epmapper This way we'll be able to do epmapper lookups for the DFS-R (MS-FRS2) endpoint, by using "5bc1ed07-f5f5-485f-9dfd-6fd0acf9a23c@ncacn_ip_tcp:hostname.exmple.com[krb5,seal]" as binding. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Mar 25 02:43:39 CET 2014 on sn-devel-104 --- diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 7604ad6dfd8..f87d8da466b 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -117,7 +117,7 @@ struct epm_map_binding_state { const struct ndr_interface_table *table; struct dcerpc_pipe *pipe; struct policy_handle handle; - struct GUID guid; + struct GUID object; struct epm_twr_t twr; struct epm_twr_t *twr_r; uint32_t num_towers; @@ -149,7 +149,7 @@ static void continue_epm_recv_binding(struct composite_context *ctx) if (!composite_is_ok(c)) return; /* with some nice pretty paper around it of course */ - s->r.in.object = &s->guid; + s->r.in.object = &s->object; s->r.in.map_tower = &s->twr; s->r.in.entry_handle = &s->handle; s->r.in.max_towers = 1; @@ -248,6 +248,7 @@ struct composite_context *dcerpc_epm_map_binding_send(TALLOC_CTX *mem_ctx, c->private_data = s; s->binding = binding; + s->object = dcerpc_binding_get_object(binding); s->table = table; c->status = dcerpc_binding_set_abstract_syntax(binding,