mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
samba-tool/join_member: let py_net_join_member() choose the password
It means we'll let trust_pw_new_value() generate the password. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14984 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 59ac782452c4993274fa837256a8b9c5675e707b)
This commit is contained in:
parent
ac61afa502
commit
e13a72df5f
@ -691,8 +691,6 @@ class cmd_domain_join(Command):
|
||||
os.rename(f.name, smb_conf)
|
||||
s3_lp = s3param.get_context()
|
||||
s3_lp.load(smb_conf)
|
||||
if machinepass is None:
|
||||
machinepass = samba.generate_random_machine_password(14, 40)
|
||||
s3_net = s3_Net(creds, s3_lp, server=server)
|
||||
(sid, domain_name) = s3_net.join_member(netbios_name,
|
||||
machinepass=machinepass,
|
||||
|
Loading…
x
Reference in New Issue
Block a user