Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
}
if (force_encrypt) {
- status = cli_cm_force_encryption(c,
- username,
- password,
- domain,
- sharename);
+ status = cli_cm_force_encryption_creds(c,
+ creds,
+ sharename);
if (!NT_STATUS_IS_OK(status)) {
cli_shutdown(c);
return status;
if (context->internal->smb_encryption_level) {
/* Attempt encryption. */
- status = cli_cm_force_encryption(c,
- username_used,
- password_used,
- *pp_workgroup,
- share);
+ status = cli_cm_force_encryption_creds(c,
+ creds,
+ share);
if (!NT_STATUS_IS_OK(status)) {
/*