mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
python/join: use the provided krbtgt link in cleanup_old_accounts
Before we were putting it in an otherwise unused variable, and deleting the previous krbtgt_dn, if any. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Mulder <dmulder@samba.org>
This commit is contained in:
parent
820b3d82fa
commit
98f6ece5ad
@ -259,7 +259,7 @@ class DCJoinContext(object):
|
||||
ctx.del_noerror(res[0].dn, recursive=True)
|
||||
|
||||
if "msDS-Krbtgtlink" in res[0]:
|
||||
new_krbtgt_dn = res[0]["msDS-Krbtgtlink"][0]
|
||||
ctx.new_krbtgt_dn = res[0]["msDS-Krbtgtlink"][0]
|
||||
ctx.del_noerror(ctx.new_krbtgt_dn)
|
||||
|
||||
res = ctx.samdb.search(base=ctx.samdb.get_default_basedn(),
|
||||
|
Loading…
Reference in New Issue
Block a user