Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Filter with umlauts does not work #925

Closed
simon-kolkmann opened this issue Aug 3, 2023 · 1 comment
Closed

Filter with umlauts does not work #925

simon-kolkmann opened this issue Aug 3, 2023 · 1 comment

Comments

@simon-kolkmann
Copy link

simon-kolkmann commented Aug 3, 2023

When searching a value that contains umlauts, the filter string is encoded in a way our AD does not seem to understand. It does not return any search results. When searching values without umlauts everything works fine.

Minimal reproduction:

import ldapjs from 'ldapjs'

const { EqualityFilter } = ldapjs

console.log(
	new EqualityFilter({
		attribute: `member`,
		value: 'CN=abcö'
	}).toString()
) // -> "(member=CN=abc\c3\b6)"

I didn't have this problem with ldapjs v2. Any idea how to fix this?

EDIT: I found escapeFilterValue und RFC4515, so this seems to work as expected. I'm still not sure if our active directory is to blame, I'm part of a larger corporation and I haven't heard of similar problems in other apps.

@jsumners
Copy link
Member

jsumners commented Aug 3, 2023

Duplicate of #860. Please see that thread.

@jsumners jsumners closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants