/[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 1675 - (hide annotations) (download)
Sun May 29 22:57:54 2011 UTC (12 years, 10 months ago) by misc
File size: 625 byte(s)
add redundancy for postfix ldap connexion

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     -%>
8 misc 1675 server_host = ldaps://ldap.<%= domain %>:636 ldaps://ldap-slave-1.<%= domain %>:636
9 misc 1287 search_base = <%= dc_suffix %>
10 misc 1288 query_filter = (&(uid=%u)(|<%= query_string %>))
11 misc 1287 result_attribute = mail
12     bind = yes
13 misc 1290 bind_dn = cn=postfix-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
14 misc 1287 bind_pw = <%= ldap_password %>
15 misc 1294 # postfix complain on url
16     # warning: dict_ldap_open: URL scheme ldaps requires protocol version 3
17     version = 3
18 misc 1346 domain = <%= domain %>

  ViewVC Help
Powered by ViewVC 1.1.30