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

          Issue ID: 10090
           Summary: regex that contains a quoted literal space or escaped
                    space results in a parse error
           Product: OpenLDAP
           Version: 2.6.6
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: slapd
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Searching ACLs using regex expressions should allow for white space.

olcAccess: to dn.subtree="dc=example,dc=com" by dn.regex="ou=Before\
After,o=example[.]com,c=US$" read by * break

or

olcAccess: to dn.subtree="dc=example,dc=com" by dn.regex="ou=Before[
]After,o=example[.]com,c=US$" read by * break

or any regex that contains a literal space results in a parse error.

It seems like the string is broken on literal spaces irrespective of quoting.

Debug output from slapd:

64cd845c.253aa590 0x7fe6f4fc9640 slapd: line 0: regular expression "ou=Before\"
bad because of Trailing backslash

This should also include other methods for expressing white space such as
`:space:` or `\w` pattern matches.

olcAccess: to dn.subtree="dc=example,dc=com" by
dn.regex="ou=Before[[:space:]]After,o=example[.]com,c=US$" read by * break

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

Reply via email to