https://bugs.openldap.org/show_bug.cgi?id=9442
Issue ID: 9442 Summary: slapo-constraint negated regex Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: overlays Assignee: bugs@openldap.org Reporter: david@barchie.si Target Milestone: ---
slapo-constraint doesn't conveniently allow setting a constraint with a negated regex.
Taking grep as an example (i.e. --invert-match), I propose adding a constraint type that allows using a regex in a negated way. When a match is found a constraint error is raised.
The configuration entry would look like the following:
constraint_attribute mail negregex ^.*@somedomain.com$
This feature request was started on the openldap-devel mailing list, https://lists.openldap.org/hyperkitty/list/openldap-devel@openldap.org/threa...