diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-02 18:26:42 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-02 18:26:42 +0000 |
commit | f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7 (patch) | |
tree | de61953ef27ea5ed53389d5e42219cd7611310cf /modules | |
parent | a71deaf4778340ee8570d75b8d3890a878785424 (diff) | |
download | puppet-f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7.tar puppet-f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7.tar.gz puppet-f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7.tar.bz2 puppet-f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7.tar.xz puppet-f15cc6af6ed0b1fad4a713765a7d5e2b24b900b7.zip |
do not modify shared variable, cause nasty side effect
Diffstat (limited to 'modules')
-rw-r--r-- | modules/postfix/templates/group_aliases.conf | 4 | ||||
-rw-r--r-- | modules/postfix/templates/ldap_aliases.conf | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/postfix/templates/group_aliases.conf b/modules/postfix/templates/group_aliases.conf index ce774952..eac16dab 100644 --- a/modules/postfix/templates/group_aliases.conf +++ b/modules/postfix/templates/group_aliases.conf @@ -1,7 +1,7 @@ <%- - ldap_servers.map! { |l| "ldaps://#{l}:636" } + ldap = ldap_servers.map { |l| "ldaps://#{l}:636" } -%> -server_host = <%= ldap_servers.join(' ') %> +server_host = <%= ldap.join(' ') %> search_base = <%= dc_suffix %> query_filter = (&(cn=mga-%u)(objectClass=groupOfNames)) result_attribute = mail diff --git a/modules/postfix/templates/ldap_aliases.conf b/modules/postfix/templates/ldap_aliases.conf index 93b95bdd..40d7da13 100644 --- a/modules/postfix/templates/ldap_aliases.conf +++ b/modules/postfix/templates/ldap_aliases.conf @@ -5,9 +5,9 @@ aliases_group.each do |g| query_string += '(memberOf=cn=' + g + ',ou=Group,' + dc_suffix + ')' end -ldap_servers.map! { |l| "ldaps://#{l}:636" } +ldap = ldap_servers.map { |l| "ldaps://#{l}:636" } -%> -server_host = <%= ldap_servers.join(' ') %> +server_host = <%= ldap.join(' ') %> search_base = <%= dc_suffix %> query_filter = (&(uid=%u)(|<%= query_string %>)) result_attribute = mail |