s3-winbind: We need to use internal rpc connections in winbind.
authorAndreas Schneider <asn@samba.org>
Fri, 12 Aug 2011 09:19:09 +0000 (11:19 +0200)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:04 +0000 (09:05 -0400)
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
source3/rpc_server/rpc_ncacn_np.c
source3/rpc_server/rpc_ncacn_np.h
source3/winbindd/winbindd_samr.c

index 028f182a59393473af11bc84b0524a774c83b872..62f42700d1796c1c945df7b5c5abb77f82c1f248 100644 (file)
@@ -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,
index fc968a20353f81f16fa1f3219f0ca43cb2f8f13f..586d61bea2cfa660955cee67852f13fa88c1ef6d 100644 (file)
@@ -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_ */
index 7dae82ac5d322295e311660bdac0ec39f0ab9e8d..582e2a696207cbc9ead82cb2e752c7b8b70d78cd 100644 (file)
@@ -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,