Skip to content

Fix LDAP queries with non-ascii chars #1946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NeffIsBack
Copy link
Contributor

Currently querying with non-ascii chars is not possible because of the default encoding latin-1/iso-8859-1. This prevents queries like the german "Domänen Administratoren" or other non-ascii entities. To fix this, the search_filter's AssertionValue musst be encoded with utf-8 instead of latin-1:
image

Take this fix with a grain of salt. This change seems logical to me, but my knowledge about Asn1 is limited.

@NeffIsBack NeffIsBack changed the title Allow LDAP queries with non-ascii chars Fix LDAP queries with non-ascii chars Apr 12, 2025
@NeffIsBack
Copy link
Contributor Author

@anadrianmanrique @gabrielg5 any chance one of you could take a look at this? It would make the life of Europeans with special chars in their language much easier.

@anadrianmanrique anadrianmanrique self-assigned this Apr 21, 2025
@anadrianmanrique anadrianmanrique removed their assignment Apr 21, 2025
@anadrianmanrique anadrianmanrique added the medium Medium priority item label Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Medium priority item unicode_issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants