mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
python/samba: PY3 port for ridalloc_exop test to work
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
dcbdae15b2
commit
fc13a1268a
@ -237,7 +237,7 @@ def offline_remove_server(samdb, logger,
|
||||
computer_dn = None
|
||||
|
||||
try:
|
||||
dnsHostName = msgs[0]["dnsHostName"][0]
|
||||
dnsHostName = str(msgs[0]["dnsHostName"][0])
|
||||
except KeyError:
|
||||
dnsHostName = None
|
||||
|
||||
@ -268,7 +268,7 @@ def offline_remove_server(samdb, logger,
|
||||
samdb.delete(computer_dn, ["tree_delete:0"])
|
||||
|
||||
if "dnsHostName" in msgs[0]:
|
||||
dnsHostName = msgs[0]["dnsHostName"][0]
|
||||
dnsHostName = str(msgs[0]["dnsHostName"][0])
|
||||
|
||||
if remove_dns_account:
|
||||
res = samdb.search(expression="(&(objectclass=user)(cn=dns-%s)(servicePrincipalName=DNS/%s))" %
|
||||
|
Reference in New Issue
Block a user