From: Stefan Metzmacher Date: Mon, 11 Nov 2019 13:38:19 +0000 (+0100) Subject: s3:rpcclient: make use of get_cmdline_auth_info_creds() in cmd_spoolss.c X-Git-Tag: ldb-2.2.0~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f399e7e6a4de486876eebf286f2f9f0268687a16;p=thirdparty%2Fsamba.git s3:rpcclient: make use of get_cmdline_auth_info_creds() in cmd_spoolss.c Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index bc37393291a..a7e0c673a65 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -3532,17 +3532,12 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli, /* first get the connection to the remote server */ - nt_status = cli_full_connection(&cli_server2, lp_netbios_name(), argv[2], + nt_status = cli_full_connection_creds(&cli_server2, lp_netbios_name(), argv[2], NULL, 0, "IPC$", "IPC", - get_cmdline_auth_info_username( + get_cmdline_auth_info_creds( popt_get_cmdline_auth_info()), - lp_workgroup(), - get_cmdline_auth_info_password( - popt_get_cmdline_auth_info()), - get_cmdline_auth_info_use_kerberos( - popt_get_cmdline_auth_info()) ? - CLI_FULL_CONNECTION_USE_KERBEROS : 0, + 0, /* flags */ get_cmdline_auth_info_signing_state( popt_get_cmdline_auth_info()));