Closed TomerCohen95 closed 1 year ago
ldap3 behaves correctly (that is, according to RFC 4515) here. The 'value' side of a filter must not contain ASCII NUL, parenthesis or an asterisk, those need to be backslash-escaped as you already noted.
As @dequbed said: parentheses in a filter literal must be hex-escaped. The ldap_escape()
function does this.
While trying to search
we are getting
filter parse error
which is caused by the(Tomer)
in the first distinguished name. when removing the parenthesis or switching to `\28Tomer\29' the request succeeds.when using ldp.exe to send the request - the filter works just as it is in the example