Hello,
for setting up some mailing lists I don't want to list the users mail
addresses directly in the group (as in the LDAP-Howto #1), nor would I
like to use the dn (as in Example #2).
We use a uidNumber as user attribute that never changes (except if it is
deleted), so it would be convenient to simply define the list by
specifying the "numberUid"s of the group members in the group attribute
memberUid.
Groups and users both have a "mail" attribute.
I understand that LDAP URI as special_result_attribute cannot be used,
as there is no way to evaluate the list of memberUid-s of the current
group. Is this correct?
Do I need another map for numberUids->mails or what other options do I have?
This just gets me the numberUids from the group:
main.cf:
...
virtual_alias_maps =
ldap:alias-groups
...
alias-groups_server_host = 127.0.1.1
alias-groups_search_base = ou=groups,dc=example,dc=com
alias-groups_scope = sub
alias-groups_query_filter = (|(mail=%s)(mailAlternateAddress=%s))
alias-groups_result_attribute = memberUid
--
Greetings
Neven Luetic