From 2c7da66570999dcd21f11f976dc6ec27d820f45c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Oct 2024 19:28:06 -0700 Subject: Use @ when accessing variables in templates Access without the @ symbol is the older method and is discouraged. --- modules/pam/templates/system-auth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam/templates/system-auth') diff --git a/modules/pam/templates/system-auth b/modules/pam/templates/system-auth index 37d1da7d..c6496ba8 100644 --- a/modules/pam/templates/system-auth +++ b/modules/pam/templates/system-auth @@ -14,7 +14,7 @@ account required pam_ldap.so <%- allowed_access_classes = scope.lookupvar('pam::multiple_ldap_access::allowed_access_classes') -%> <%- if allowed_access_classes -%> <%- allowed_access_classes.each { |ldap_group| -%> -account sufficient pam_succeed_if.so quiet user ingroup <%= ldap_group %> +account sufficient pam_succeed_if.so quiet user ingroup <%= @ldap_group %> <%- } -%> <%- end -%> account required pam_deny.so -- cgit v1.2.1