edgeport - v1.0.3
    Preparing search index...

    Function parseFilter

    Re-export of the structured Filter union for callers building filters directly.

    • Parses an RFC 4515 filter string into a structured Filter.

      Supports the composite operators &, |, !, the comparison operators =, >=, <=, ~=, the presence test attr=*, and substring patterns such as cn=a*b*c. The outermost parentheses are required, matching the RFC grammar.

      Parameters

      • input: string

        The filter string (e.g. (&(objectClass=person)(uid=jdoe))).

      Returns Filter

      The structured filter.

      If the string is malformed (unbalanced parens, empty filter, etc.).

      1.0.0

      parseFilter('(mail=*)'); // { type: 'present', attribute: 'mail' }
      parseFilter('(cn=a*b*c)'); // substrings: initial a, any [b], final c