summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-08-12 11:19:09 +0200
committerSimo Sorce <idra@samba.org>2011-08-21 09:05:04 -0400
commiteb8a0c76725500d183c50eb795c683f23d4aede7 (patch)
tree3f2679a5ebaeeb318591cd43fd0cbb14e8793f96
parentbfd96248185a7a7325a0f5991f2655759905c45e (diff)
downloadsamba-eb8a0c76725500d183c50eb795c683f23d4aede7.tar.gz
samba-eb8a0c76725500d183c50eb795c683f23d4aede7.tar.bz2
samba-eb8a0c76725500d183c50eb795c683f23d4aede7.zip
s3-winbind: We need to use internal rpc connections in winbind.
Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c2
-rw-r--r--source3/rpc_server/rpc_ncacn_np.h7
-rw-r--r--source3/winbindd/winbindd_samr.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index 028f182a59..62f42700d1 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 fc968a2035..586d61bea2 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 7dae82ac5d..582e2a6962 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,