mirror of
https://github.com/samba-team/samba.git
synced 2025-02-18 17:57:55 +03:00
pytest/samba_tool_drs: Convert bytes to UTF-8 string
We later use this variable as part of a string substitution, and if we leave it as bytes we will end up with b' ' quotes surrounding it, which we do not want. Fix this by converting it to a string. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d2063568ce
commit
7bf6fa05b0
@ -360,7 +360,7 @@ class SambaToolDrsTests(drs_base.DrsBaseTestCase):
|
||||
self.assertEqual(ldap_service_name, server_ldap_service_name)
|
||||
|
||||
server_dn = samdb.searchone("serverReferenceBL", "cn=%s,ou=domain controllers,%s" % (self.dc2, server_nc_name)).decode('utf8')
|
||||
ntds_guid = samdb.searchone("objectGUID", "cn=ntds settings,%s" % server_dn)
|
||||
ntds_guid = samdb.searchone("objectGUID", "cn=ntds settings,%s" % server_dn).decode('utf8')
|
||||
|
||||
res = samdb.search(base=str(server_nc_name),
|
||||
expression="(&(objectclass=user)(cn=dns-%s))" % (self.dc2),
|
||||
|
Loading…
x
Reference in New Issue
Block a user