blob: 40d7da136145c24cc2564b3521de572dfa7aafb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<%-
# 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
ldap = ldap_servers.map { |l| "ldaps://#{l}:636" }
-%>
server_host = <%= ldap.join(' ') %>
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 %>
# postfix complain on url
# warning: dict_ldap_open: URL scheme ldaps requires protocol version 3
version = 3
domain = <%= domain %>
|