I am having two LDAP Subtrees:
- users
- mailinglists
a user has (besides many other attributes) an attribute emailForwardTo
which contains email addresses to that mailinglists should be forwarded for this user and forwardList
, containing a list of mailinglist ou
attributes that should be forwarded.
Those fields need to be set in the user (as 1st the user config should be all in one place and 2nd the user can edit only their own entry). But for my postfix alias lookup, I need to have a list of those alias addresses in the alias objects attribute forwardTo
.
I remember that for groups, there is the memberOf
virtual attribute that acts acts similarly. Is it possible to do the same for my case? (edit: as stated in the comments, I now know this kind of attribute is called overlay)
Or would it be possible to do joins in ldap queries?
Edit 2: As Joins are probably impossible in LDAP, is it possible to write an own overlay, that works like memberOf
but on other attributes?