/[adm]/puppet/modules/postfix/templates/ldap_aliases.conf
ViewVC logotype

Contents of /puppet/modules/postfix/templates/ldap_aliases.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2335 - (show annotations) (download)
Sun Jan 22 23:57:57 2012 UTC (8 years, 4 months ago) by misc
File size: 633 byte(s)
use get_ldap_servers() instead of hardcoding the servers
1 <%-
2 # TODO I am sure that a more elegant way could be find
3 query_string = ''
4 aliases_group.each do |g|
5 query_string += '(memberOf=cn=' + g + ',ou=Group,' + dc_suffix + ')'
6 end
7
8 ldap_servers.map! { |l| "'ldaps://#{l}:636'" }
9 -%>
10 server_host = <%= ldap_servers.join(' ') %>
11 search_base = <%= dc_suffix %>
12 query_filter = (&(uid=%u)(|<%= query_string %>))
13 result_attribute = mail
14 bind = yes
15 bind_dn = cn=postfix-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
16 bind_pw = <%= ldap_password %>
17 # postfix complain on url
18 # warning: dict_ldap_open: URL scheme ldaps requires protocol version 3
19 version = 3
20 domain = <%= domain %>

  ViewVC Help
Powered by ViewVC 1.1.28