s4:librpc/rpc: use dcerpc_binding_get_object() in order to pass the object to the...
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Jan 2014 10:14:36 +0000 (11:14 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Mar 2014 01:43:39 +0000 (02:43 +0100)
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

source4/librpc/rpc/dcerpc_util.c

index 7604ad6dfd80ddf65259497621ad7ce62f993ef9..f87d8da466b932aef21ec29a555d34028fa3b102 100644 (file)
@@ -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,