mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3:libsmb: make use of get_cmdline_auth_info_creds() in get_ipc_connect()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
16fbb196fc
commit
2465301226
@ -3784,16 +3784,10 @@ struct cli_state *get_ipc_connect(char *server,
|
||||
NTSTATUS nt_status;
|
||||
uint32_t flags = CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK;
|
||||
|
||||
if (get_cmdline_auth_info_use_kerberos(user_info)) {
|
||||
flags |= CLI_FULL_CONNECTION_USE_KERBEROS;
|
||||
}
|
||||
|
||||
flags |= CLI_FULL_CONNECTION_FORCE_SMB1;
|
||||
|
||||
nt_status = cli_full_connection(&cli, NULL, server, server_ss, 0, "IPC$", "IPC",
|
||||
get_cmdline_auth_info_username(user_info),
|
||||
lp_workgroup(),
|
||||
get_cmdline_auth_info_password(user_info),
|
||||
nt_status = cli_full_connection_creds(&cli, NULL, server, server_ss, 0, "IPC$", "IPC",
|
||||
get_cmdline_auth_info_creds(user_info),
|
||||
flags,
|
||||
SMB_SIGNING_DEFAULT);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user