1
0
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:
Stefan Metzmacher 2016-11-03 17:27:49 +01:00 committed by Andreas Schneider
parent ff23ee7ef2
commit 0c52239868
2 changed files with 6 additions and 10 deletions

View File

@ -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;

View File

@ -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)) {
/*