1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

python/samba: PY3 Credential.set_password takes string

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power
2018-11-28 13:58:49 +00:00
committed by Noel Power
parent 9b18748c70
commit d253e84a41

View File

@ -946,7 +946,7 @@ class DCJoinContext(object):
repl_creds.guess(ctx.lp)
repl_creds.set_kerberos_state(DONT_USE_KERBEROS)
repl_creds.set_username(ctx.samname)
repl_creds.set_password(ctx.acct_pass.encode('utf-8'))
repl_creds.set_password(ctx.acct_pass)
else:
repl_creds = ctx.creds