Open TencentSZ opened 5 years ago
Hello,
We're having the exact same issue.
We fixed with via this patch, but I'm not sure it's the correct way to do it.
--- /tmp/entryhelpers.py 2021-11-24 10:07:06.132309580 +0100
+++ entryhelpers.py 2021-11-24 10:06:47.395604502 +0100
@@ -166,6 +166,10 @@
return False
possibleMatches = self[filter.type]
+ for substring in filter.substrings:
+ if isinstance(substring.value, bytes):
+ substring.value = substring.value.decode("utf-8")
+
substrings = filter.substrings[:]
if substrings and isinstance(
I can create a PR if that the correct way to fix it or if pointer in the right direction :)
Thanks,
I read the tutorial https://ldaptor.readthedocs.io/en/latest/quickstart.html and learned how to load LDAP entries from a static LDIF. Since I want to load contact from SQL database, I raised a question and get help from a kind response here https://github.com/twisted/ldaptor/issues/154
I tried the code below, and sent a query from Microsoft Outlook, but my program raised an error
The error information is
here x is a plain string while the filter values are byte.