Ticket 50931 - RFE AD filter rewriter for ObjectCategory
Bug Description:
AD provides flexibility, to AD client, to use shortcuts values in filter components.
To support AD client using 'ObjectCategory' shortcut, we need a 389-ds filter rewriters that
translate the filter '(ObjectCategory=foo)' into '(ObjectCategory=cn=foo,cn=schema,cn=configuration,<base>)'
before processing the filter
[1] https://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx#Filter_on_objectCategory_and_objectClass
Fix Description:
This patch uses the new ability to registers rewriters (https://pagure.io/389-ds-base/issue/50980).
It implements a new rewriters library (under /lib) with a callback filter rewriter adfilter_rewrite_objectCategory.
A adfilter rewriter config entry refers to that library and register the callback at startup
https://pagure.io/389-ds-base/issue/50931
Reviewed by: Mark Reynolds, William Brown
Platforms tested: F29
Flag Day: no
Doc impact: no