diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-25 11:14:36 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-03-25 02:43:39 +0100 |
commit | 547111b2cf94d18ae7972308161d64b5504ee9fd (patch) | |
tree | 52b5394cd31746f10f3c603ccdc8bbe546967c3f /source4/librpc | |
parent | f17b5b2fe4f2104e5540691b2ad1819aa3db43a3 (diff) | |
download | samba-547111b2cf94d18ae7972308161d64b5504ee9fd.tar.gz samba-547111b2cf94d18ae7972308161d64b5504ee9fd.tar.xz samba-547111b2cf94d18ae7972308161d64b5504ee9fd.zip |
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Mar 25 02:43:39 CET 2014 on sn-devel-104
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, |