aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/templates/data_sources/ldap_group.incl
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
committerDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
commit2c7da66570999dcd21f11f976dc6ec27d820f45c (patch)
treeb97dd9f25df691c66b2be31b658cc6fec638d47e /modules/sympa/templates/data_sources/ldap_group.incl
parenta69863ece1973cf3eae488f30c657b57dfb89779 (diff)
downloadpuppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.gz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.bz2
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.xz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.zip
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
Diffstat (limited to 'modules/sympa/templates/data_sources/ldap_group.incl')
-rw-r--r--modules/sympa/templates/data_sources/ldap_group.incl8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sympa/templates/data_sources/ldap_group.incl b/modules/sympa/templates/data_sources/ldap_group.incl
index 609a7e42..c8c5d9e4 100644
--- a/modules/sympa/templates/data_sources/ldap_group.incl
+++ b/modules/sympa/templates/data_sources/ldap_group.incl
@@ -1,13 +1,13 @@
include_ldap_2level_query
- host ldap.<%= domain %>
+ host ldap.<%= @domain %>
use_tls ldaps
ssl_version tlsv1_2
ca_verify none
- user cn=sympa-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
+ user cn=sympa-<%= @hostname %>,ou=System Accounts,<%= @dc_suffix %>
passwd <%= scope.lookupvar("sympa::server::ldap_password") %>
- suffix1 ou=Group,<%= dc_suffix %>
+ suffix1 ou=Group,<%= @dc_suffix %>
scope1 one
- filter1 (&(objectClass=groupOfNames)(cn=<%= name %>))
+ filter1 (&(objectClass=groupOfNames)(cn=<%= @name %>))
attrs1 member
select1 all
suffix2 [attrs1]