diff --git a/templates/nslcd.erb b/templates/nslcd.erb index 3c695bd..6c760d6 100644 --- a/templates/nslcd.erb +++ b/templates/nslcd.erb @@ -47,8 +47,8 @@ filter <%= map %> <%= filter %> <% if @ldap_maps.length > 0 -%> # Custom maps -<% @ldap_maps.each do |map, a| -%> -<% a.each do |attribute, newattribute| -%> +<% @ldap_maps.sort.each do |map, attributes| -%> +<% attributes.sort.each do |attribute, newattribute| -%> map <%= map %> <%= attribute %> <%= newattribute %> <% end -%> <% end -%>