summaryrefslogtreecommitdiffstats
path: root/source3/rpc_client/cli_pipe.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-09-23 09:12:20 -0700
committerAndrew Bartlett <abartlet@samba.org>2014-10-17 12:57:07 +0200
commit295b323b1c65cd8387b3977a189f81253c139b43 (patch)
tree999dddd197ddd32458a39e6ced44728672ae8e29 /source3/rpc_client/cli_pipe.h
parentbe994ca579c6c302d9d6487c863699b3e4457210 (diff)
downloadsamba-295b323b1c65cd8387b3977a189f81253c139b43.tar.gz
samba-295b323b1c65cd8387b3977a189f81253c139b43.tar.xz
samba-295b323b1c65cd8387b3977a189f81253c139b43.zip
s3-librpc: Add cli_rpc_pipe_open_with_creds()
This provides a credentials-based interface. In the long term, we will want to change this not to reference the credentials, but for now this suits the caller in winbindd_cm.c Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_pipe.h')
-rw-r--r--source3/rpc_client/cli_pipe.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.h b/source3/rpc_client/cli_pipe.h
index 34e79d1fa2..0c1e692138 100644
--- a/source3/rpc_client/cli_pipe.h
+++ b/source3/rpc_client/cli_pipe.h
@@ -72,6 +72,21 @@ NTSTATUS cli_rpc_pipe_open_noauth_transport(struct cli_state *cli,
const struct ndr_interface_table *table,
struct rpc_pipe_client **presult);
+/****************************************************************************
+ Open a named pipe to an SMB server and bind using the mech specified
+
+ This routine steals the creds pointer that is passed in
+ ****************************************************************************/
+
+NTSTATUS cli_rpc_pipe_open_with_creds(struct cli_state *cli,
+ const struct ndr_interface_table *table,
+ enum dcerpc_transport_t transport,
+ enum dcerpc_AuthType auth_type,
+ enum dcerpc_AuthLevel auth_level,
+ const char *server,
+ struct cli_credentials *creds,
+ struct rpc_pipe_client **presult);
+
NTSTATUS cli_rpc_pipe_open_generic_auth(struct cli_state *cli,
const struct ndr_interface_table *table,
enum dcerpc_transport_t transport,