Chris Cowan via FreeIPA-users wrote:
> I created some rules, and they worked as expected, but there's no guidance 
> that I can find of which metacharacters are supported.   

This is handled in 389-ds. The regex is a thin wrapper around pcre.
https://github.com/389ds/389-ds-base/blob/main/ldap/servers/slapd/regex.c

> Perhaps if I knew they were using the perl regex library, or whatever that 
> might help.  Also, it seems like the inclusive rules are OR'ed together, but 
> that is not discussed either.  I may not be looking in the right places for 
> documentation.
> 
> So, far I have found that this worked as expected.
> departmentnumber = ^(ABC|DEF|GHI)
> 
> And I was able to accomplish the same thing with 3 distinct rules.   Just 
> wondering what flexibility, I have here.

The rules are not OR'd together. With three separate rules one matched
so it was applied.

rob
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to