diff options
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 |