https://bugs.openldap.org/show_bug.cgi?id=9393

          Issue ID: 9393
           Summary: Provider a LDAP filter validation function
           Product: OpenLDAP
           Version: 2.4.56
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

In many situations I need to validate if a user submitted LDAP filter has valid
syntax.

It seems there is no official function to check this.
Could you provide one?

libraries/libldap/filter.c: ldap_pvt_put_filter() can be used as a basis.

--
My current workaround is using a unconnected ldap connection and do a search
with that filter. This yields a FILTER_ERROR (invalid filter) or a SERVER_DOWN
error (invalid filter).

See also:
https://github.com/python-ldap/python-ldap/pull/272

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to