Changeset View
Changeset View
Standalone View
Standalone View
templates/mailenabled_distgroups.cf.j2
- This file was added.
server_host = {{ ldap.ldap_uri }} | |||||
server_port = 389 | |||||
version = 3 | |||||
search_base = {{ ldap.group_base_dn }} | |||||
scope = sub | |||||
domain = ldap:/etc/postfix/ldap/mydestination.cf | |||||
bind_dn = {{ ldap.service_bind_dn }} | |||||
bind_pw = {{ ldap.service_bind_pw }} | |||||
# This finds the mail enabled distribution group LDAP entry | |||||
query_filter = | |||||
(& | |||||
(| | |||||
{% for item in ldap.mail_attributes.split(',') -%} | |||||
({{ item | trim }}=%s) | |||||
{%- endfor %} | |||||
) | |||||
(objectClass=kolabgroupofuniquenames) | |||||
(objectclass={{ ldap.group_objectclass }}) | |||||
(!(objectclass=groupofurls)) | |||||
) | |||||
# From this type of group, get all uniqueMember DNs | |||||
special_result_attribute = {{ ldap.group_member_attr }} | |||||
# Only from those DNs, get the mail | |||||
result_attribute = | |||||
leaf_result_attribute = mail |