diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-29 02:01:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:03:06 -0500 |
commit | 64e98b032431fbbfe76b48dd193af6ff43d510ed (patch) | |
tree | a330577c4c1c1eab7d7737d05395a1d420e43dc2 /source4/librpc/rpc/dcerpc_connect.c | |
parent | 4e1d0cc8e3b7bfb51845fbe836812f7558c30c10 (diff) | |
download | samba-64e98b032431fbbfe76b48dd193af6ff43d510ed.tar.gz samba-64e98b032431fbbfe76b48dd193af6ff43d510ed.tar.bz2 samba-64e98b032431fbbfe76b48dd193af6ff43d510ed.zip |
r24763: Allow users to leave out the transport in DCE/RPC binding strings. If the transport is not specified, it will be retrieved from the remote endpoint mapper or the IDL file.
This means that 'smbtorture localhost RPC-WINREG' works now.
(This used to be commit b7fa0859d2e4236112075604281410ba037b1076)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_connect.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc_connect.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c index 710474ce3b..be95f21594 100644 --- a/source4/librpc/rpc/dcerpc_connect.c +++ b/source4/librpc/rpc/dcerpc_connect.c @@ -733,6 +733,14 @@ struct composite_context* dcerpc_pipe_connect_b_send(TALLOC_CTX *parent_ctx, dcerpc_connect_timeout_handler, c); switch (s->binding->transport) { + case NCA_UNKNOWN: { + struct composite_context *binding_req; + binding_req = dcerpc_epm_map_binding_send(c, s->binding, s->table, + s->pipe->conn->event_ctx); + composite_continue(c, binding_req, continue_map_binding, c); + return c; + } + case NCACN_NP: case NCACN_IP_TCP: case NCALRPC: |