From b89a0439b3e38b6da739119d904d25901f34a8f8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 2 Jan 2012 12:51:06 +1100 Subject: s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be generic This also includes renaming the helper function rpccli_ntlmssp_bind_data, and allows this function to operate on any gensec-supplied auth type. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/utils/net_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index ef017ec9dc..5491c58138 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -200,11 +200,13 @@ int run_rpc_command(struct net_context *c, } } else { if (conn_flags & NET_FLAGS_SEAL) { - nt_status = cli_rpc_pipe_open_ntlmssp( + nt_status = cli_rpc_pipe_open_generic_auth( cli, interface, (conn_flags & NET_FLAGS_TCP) ? NCACN_IP_TCP : NCACN_NP, + DCERPC_AUTH_TYPE_NTLMSSP, DCERPC_AUTH_LEVEL_PRIVACY, + cli_state_remote_name(cli), lp_workgroup(), c->opt_user_name, c->opt_password, &pipe_hnd); } else { -- cgit