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...
https://bugs.openldap.org/show_bug.cgi?id=9442
--- Comment #1 from David Barchiesi david@barchie.si --- I, David Barchiesi, hereby place the following modifications to OpenLDAP Software (and only these modifications) into the public domain. Hence, these modifications may be freely used and/or redistributed for any purpose with or without attribution and/or other notice.
Gitlab MR: https://git.openldap.org/openldap/openldap/-/merge_requests/214
https://bugs.openldap.org/show_bug.cgi?id=9442
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.1 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 0799f585 by David Barchiesi at 2021-01-28T18:54:03+00:00 ITS#9442 Add negregex constraint type for not allowing values based on a regex.
https://bugs.openldap.org/show_bug.cgi?id=9442
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED