mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:libsmb: make use of cli_cm_force_encryption_creds() where we already have creds
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
ff23ee7ef2
commit
0c52239868
@ -299,11 +299,9 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -609,11 +609,9 @@ SMBC_server_internal(TALLOC_CTX *ctx,
|
||||
|
||||
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)) {
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user