mirror of
https://github.com/samba-team/samba.git
synced 2025-03-04 16:58:42 +03:00
python/samba/netcmd: PY3 port samba4.blackbox.ldapcmp_restore
Convert attribute from bytes to str Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
fdb3aa487f
commit
32a490d681
@ -635,6 +635,7 @@ class cmd_domain_backup_rename(samba.netcmd.Command):
|
||||
for res_msg in res:
|
||||
# dnsRoot can be multi-valued, so only look for the old realm
|
||||
for dns_root in res_msg["dnsRoot"]:
|
||||
dns_root = str(dns_root)
|
||||
dn = res_msg.dn
|
||||
if old_realm in dns_root:
|
||||
new_dns_root = re.sub('%s$' % old_realm, new_realm,
|
||||
|
Loading…
x
Reference in New Issue
Block a user