diff options
author | Noel Power <noel.power@suse.com> | 2018-10-10 12:18:32 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-10-23 05:50:29 +0200 |
commit | 86e22c060655bde73b24223e790bd27c5fd4afe7 (patch) | |
tree | 41ae650db757d9dbdcbb612cc0ced40fcc0bdbe7 | |
parent | 2c0f7f07c60209cd3e32b9f17737e72fcc02fdc9 (diff) | |
download | samba-86e22c060655bde73b24223e790bd27c5fd4afe7.tar.gz |
python/samba/provision: PY3 port samba4.blackbox.provision-backend
Fix some attibrutes that need to be treated as str
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | python/samba/provision/backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/provision/backend.py b/python/samba/provision/backend.py index 4d11690a767..e46e3e86ba1 100644 --- a/python/samba/provision/backend.py +++ b/python/samba/provision/backend.py @@ -382,7 +382,7 @@ class OpenLDAPBackend(LDAPBackend): base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) index_config = "" for i in range(0, len(res)): - index_attr = res[i]["lDAPDisplayName"][0] + index_attr = str(res[i]["lDAPDisplayName"][0]) if index_attr == "objectGUID": index_attr = "entryUUID" @@ -745,7 +745,7 @@ class FDSBackend(LDAPBackend): base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) for i in range(0, len(res)): - attr = res[i]["lDAPDisplayName"][0] + attr = str(res[i]["lDAPDisplayName"][0]) if attr == "objectGUID": attr = "nsUniqueId" |