1
0
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:
Noel Power
2018-09-07 12:42:19 +01:00
committed by Andrew Bartlett
parent dcbdae15b2
commit fc13a1268a
2 changed files with 6 additions and 7 deletions

View File

@ -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))" %