mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3:rpcclient: make use of get_cmdline_auth_info_creds() in cmd_spoolss.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
bec9c47cbc
commit
f399e7e6a4
@ -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()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user