Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
NTSTATUS status;
int flags = 0;
int signing_state = get_cmdline_auth_info_signing_state(auth_info);
+ struct cli_credentials *creds = NULL;
if (force_encrypt) {
signing_state = SMB_SIGNING_REQUIRED;
domain = lp_workgroup();
}
- status = cli_session_setup(c, username,
- password,
- domain);
+ creds = get_cmdline_auth_info_creds(auth_info);
+
+ status = cli_session_setup_creds(c, creds);
if (!NT_STATUS_IS_OK(status)) {
/* If a password was not supplied then
* try again with a null username. */