diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-27 14:28:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:48 -0500 |
commit | acd6a086b341096fcbea1775ce748587fcc8020a (patch) | |
tree | 202c9407be50a6fe215c4e6ab7ccaf843807b6c3 /source4/libnet/libnet_join.c | |
parent | 1f8bb5bd8552bb02204225e312ab36e7844920c1 (diff) | |
download | samba-acd6a086b341096fcbea1775ce748587fcc8020a.tar.gz samba-acd6a086b341096fcbea1775ce748587fcc8020a.tar.xz samba-acd6a086b341096fcbea1775ce748587fcc8020a.zip |
r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.
This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).
This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.
I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r-- | source4/libnet/libnet_join.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 28d12247c9f..11e1dfc1757 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -274,8 +274,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J status = dcerpc_pipe_connect_b(tmp_ctx, &drsuapi_pipe, drsuapi_binding, - DCERPC_DRSUAPI_UUID, - DCERPC_DRSUAPI_VERSION, + &dcerpc_table_drsuapi, ctx->cred, ctx->event_ctx); if (!NT_STATUS_IS_OK(status)) { @@ -644,9 +643,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru c->level = LIBNET_RPC_CONNECT_BINDING; c->in.binding = r->in.binding; } - c->in.dcerpc_iface_name = DCERPC_LSARPC_NAME; - c->in.dcerpc_iface_uuid = DCERPC_LSARPC_UUID; - c->in.dcerpc_iface_version = DCERPC_LSARPC_VERSION; + c->in.dcerpc_iface = &dcerpc_table_lsarpc; /* connect to the LSA pipe of the PDC */ @@ -761,7 +758,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru /* Make binding string for samr, not the other pipe */ status = dcerpc_epm_map_binding(tmp_ctx, samr_binding, - DCERPC_SAMR_UUID, DCERPC_SAMR_VERSION, + &dcerpc_table_samr, lsa_pipe->conn->event_ctx); if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, @@ -782,8 +779,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru return status; } - status = dcerpc_pipe_auth(samr_pipe, samr_binding, DCERPC_SAMR_UUID, - DCERPC_SAMR_VERSION, ctx->cred); + status = dcerpc_pipe_auth(samr_pipe, samr_binding, &dcerpc_table_samr, ctx->cred); if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "SAMR bind failed: %s", |