summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_join.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-22 12:49:58 +0100
committerGünther Deschner <gd@samba.org>2015-07-07 14:05:28 +0200
commit07b1e375e561dfe4bac9e8dd495401df1b4fcff7 (patch)
tree02cdb24404893e582d70f3bdebb7d75ce14e6c2d /source4/libnet/libnet_join.c
parentf0366838960888fa09d040ccafa76bb0723c8174 (diff)
downloadsamba-07b1e375e561dfe4bac9e8dd495401df1b4fcff7.tar.gz
s4:libnet: make use of dcerpc_secondary_auth_connection_send/recv()
This avoid the bogus usage of dcerpc_pipe_auth(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r--source4/libnet/libnet_join.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 9eb0e6585d6..cd747cc5502 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -543,17 +543,6 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
samr_pipe = connect_with_info->out.dcerpc_pipe;
- status = dcerpc_pipe_auth(tmp_ctx, &samr_pipe,
- connect_with_info->out.dcerpc_pipe->binding,
- &ndr_table_samr, ctx->cred, ctx->lp_ctx);
- if (!NT_STATUS_IS_OK(status)) {
- r->out.error_string = talloc_asprintf(mem_ctx,
- "SAMR bind failed: %s",
- nt_errstr(status));
- talloc_free(tmp_ctx);
- return status;
- }
-
/* prepare samr_Connect */
ZERO_STRUCT(p_handle);
sc.in.system_name = NULL;