Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117780622
D3469.1775247354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
883 B
Referenced Files
None
Subscribers
None
D3469.1775247354.diff
View Options
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -134,7 +136,7 @@
log.debug("Entry found: %r" % (__entries[0].__dict__))
log.debug("Returning: %r" % (__entries[0].value))
- return __entries[0].value.encode('utf-8', 'latin1')
+ return __entries[0].value.encode('utf-8', 'latin1').decode()
def set_entry(key, value):
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -252,7 +252,7 @@
(value,) = struct.unpack("!%ds" % (length), received[start:end])
start += length
end = start + 2
- login.append(value)
+ login.append(value.decode())
if len(login) == 4:
realm = login[3]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 8:15 PM (22 m, 43 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18826279
Default Alt Text
D3469.1775247354.diff (883 B)
Attached To
Mode
D3469: [Python 3] bytes-like strings decoding for saslauthd.py
Attached
Detach File
Event Timeline