diff --git a/templates/nslcd.erb b/templates/nslcd.erb index fd2e238..82c91c7 100644 --- a/templates/nslcd.erb +++ b/templates/nslcd.erb @@ -52,7 +52,9 @@ filter <%= map %> <%= filter %> <% if @ldap_maps.length > 0 -%> # Custom maps -<% @ldap_maps.sort.each do |key, value| -%> -map <%= key %> <%= value %> -<% end -%> +<% @ldap_maps.sort.each do |map, attributes| -%> +<% attributes.sort.each do |attribute, newattribute| -%> +map <%= map %> <%= attribute %> <%= newattribute %> +<% end -%> +<% end -%> <% end -%>