diff options
author | Andreas Schneider <asn@samba.org> | 2020-06-10 12:45:34 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-08-19 16:22:41 +0000 |
commit | 34a81eca0da3d572992954fdbc12d97837ffd03b (patch) | |
tree | 6404356a381ba99a1703352c04a7670eeba5f84a /source3 | |
parent | be9e60efad95b96b64e5ec2db927e0f92a941437 (diff) | |
download | samba-34a81eca0da3d572992954fdbc12d97837ffd03b.tar.gz |
s3:lib: Set smb encryption also via cli creds API
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_cmdline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_cmdline.c b/source3/lib/util_cmdline.c index 6038ec11515..9c9e2f0ac0f 100644 --- a/source3/lib/util_cmdline.c +++ b/source3/lib/util_cmdline.c @@ -377,6 +377,9 @@ void set_cmdline_auth_info_use_krb5_ticket(struct user_auth_info *auth_info) /* This should only be used by lib/popt_common.c JRA */ void set_cmdline_auth_info_smb_encrypt(struct user_auth_info *auth_info) { + cli_credentials_set_smb_encryption(auth_info->creds, + SMB_ENCRYPTION_REQUIRED, + CRED_SPECIFIED); auth_info->smb_encrypt = true; } |