On 17Oct25 13:48+0200, Gregory Rocher wrote:
> Looks that spaces are the problem ? Didn't know that.

The space seems to be an issue at only one location. At the trailing 
space at `^` in the expression `(!(attr=val)^)`

Using slapd 2.6.9:

Working filter examples:
'(!(uid=u1))'
'( !(uid=u1))'
'( ! (uid=u1))'
'( ! ( uid=u1))'
'( ! ( uid=u1 ))'

As soon as there is a trailing space after the `)` of the `not filter` 
expression, then a `Bad search filter (-7)` is returned. E.g.:
'(!(uid=u1) )'

I cannot tell from [1] if this might be a bug in the parser or works as 
designed.

1: https://www.rfc-editor.org/rfc/rfc4515#section-3

-- 
Bastian Tweddell
Juelich Supercomputing Centre

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Stefan Müller
Geschäftsführung: Prof. Dr. Astrid Lambrecht (Vorsitzende),
Dr. Stephanie Bauer (stellvertretende Vorsitzende),
Prof. Dr. Ir. Pieter Jansens, Prof. Dr. Laurens Kuipers
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to