Skip to content

Searching with empty attribute value results in an invalid filter error #91255

Open
@skloepp2

Description

@skloepp2

Description

I want to find invalid objects in our directory which have a mail attribute set with an empty value => mail=""
My LDAP Filter is (mail=) which is working in Apache Directory Studio or third party ldap libraries.
After switching back to system.directoryservices.protocolls, these ldap queries are failing with "invalid ldap filter".

Reproduction Steps

Execute a SearchRequest with filter => "(mail=)" the result is a "invalid ldap filter" error

Expected behavior

No error

Actual behavior

"invalid ldap filter" error occours

Regression?

No response

Known Workarounds

Using filter (mail=\00) works and finds objects with an empty value.

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions