From: Andreas Schneider Date: Fri, 12 Aug 2011 09:19:09 +0000 (+0200) Subject: s3-winbind: We need to use internal rpc connections in winbind. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=eb8a0c76725500d183c50eb795c683f23d4aede7;p=kai%2Fsamba.git s3-winbind: We need to use internal rpc connections in winbind. Signed-off-by: Andreas Schneider Signed-off-by: Simo Sorce --- diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 028f182a593..62f42700d17 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -461,7 +461,7 @@ NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx, * @return NT_STATUS_OK on success, a corresponding NT status if an * error occured. */ -static NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx, +NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx, const struct ndr_syntax_id *abstract_syntax, const struct auth_session_info *session_info, const struct tsocket_address *remote_address, diff --git a/source3/rpc_server/rpc_ncacn_np.h b/source3/rpc_server/rpc_ncacn_np.h index fc968a20353..586d61bea2c 100644 --- a/source3/rpc_server/rpc_ncacn_np.h +++ b/source3/rpc_server/rpc_ncacn_np.h @@ -56,4 +56,11 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx, struct messaging_context *msg_ctx, struct rpc_pipe_client **cli_pipe); +NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx, + const struct ndr_syntax_id *abstract_syntax, + const struct auth_session_info *session_info, + const struct tsocket_address *remote_address, + struct messaging_context *msg_ctx, + struct rpc_pipe_client **presult); + #endif /* _RPC_NCACN_NP_H_ */ diff --git a/source3/winbindd/winbindd_samr.c b/source3/winbindd/winbindd_samr.c index 7dae82ac5d3..582e2a69620 100644 --- a/source3/winbindd/winbindd_samr.c +++ b/source3/winbindd/winbindd_samr.c @@ -56,7 +56,7 @@ static NTSTATUS open_internal_samr_pipe(TALLOC_CTX *mem_ctx, } /* create a samr connection */ - status = rpc_pipe_open_interface(mem_ctx, + status = rpc_pipe_open_internal(mem_ctx, &ndr_table_samr.syntax_id, session_info, NULL, @@ -133,7 +133,7 @@ static NTSTATUS open_internal_lsa_pipe(TALLOC_CTX *mem_ctx, } /* create a lsa connection */ - status = rpc_pipe_open_interface(mem_ctx, + status = rpc_pipe_open_internal(mem_ctx, &ndr_table_lsarpc.syntax_id, session_info, NULL,