aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postfix/templates/ldap_aliases.conf
blob: c149436a0c1d6d36867594198034dfeec4b72ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%-
# TODO I am sure that a more elegant way could be find
query_string = ''
aliases_group.each do |g|  
    query_string += '(memberOf=cn=' + g + ',ou=Group,' + dc_suffix + ')'
end 
-%>
server_host = ldaps://ldap.<%= domain %>:636
search_base = <%= dc_suffix %>
query_filter = (&(uid=%u)(|<%= query_string %>))
result_attribute = mail
bind = yes
bind_dn = cn=postfix-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
bind_pw = <%= ldap_password %>