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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2345 - (hide annotations) (download)
Thu Feb 2 18:26:42 2012 UTC (12 years, 2 months ago) by misc
File size: 629 byte(s)
do not modify shared variable, cause nasty side effect
1 misc 1288 <%-
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 misc 2335
8 misc 2345 ldap = ldap_servers.map { |l| "ldaps://#{l}:636" }
9 misc 1288 -%>
10 misc 2345 server_host = <%= ldap.join(' ') %>
11 misc 1287 search_base = <%= dc_suffix %>
12 misc 1288 query_filter = (&(uid=%u)(|<%= query_string %>))
13 misc 1287 result_attribute = mail
14     bind = yes
15 misc 1290 bind_dn = cn=postfix-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
16 misc 1287 bind_pw = <%= ldap_password %>
17 misc 1294 # postfix complain on url
18     # warning: dict_ldap_open: URL scheme ldaps requires protocol version 3
19     version = 3
20 misc 1346 domain = <%= domain %>

  ViewVC Help
Powered by ViewVC 1.1.30