aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-03-08 15:50:16 +0000
committerMichael Scherer <misc@mageia.org>2011-03-08 15:50:16 +0000
commit92dd221e8d084ab92682ff8ae215f9b76128e852 (patch)
tree363994d064f181b1e10ee8c46fc74e2df4c95b0c /modules/sympa/templates
parent47701f5f1d7e26095f06203489c98747d36e281e (diff)
downloadpuppet-92dd221e8d084ab92682ff8ae215f9b76128e852.tar
puppet-92dd221e8d084ab92682ff8ae215f9b76128e852.tar.gz
puppet-92dd221e8d084ab92682ff8ae215f9b76128e852.tar.bz2
puppet-92dd221e8d084ab92682ff8ae215f9b76128e852.tar.xz
puppet-92dd221e8d084ab92682ff8ae215f9b76128e852.zip
- do not hardcode the hostname of the server, in case we need to change it
( for example if the service is migrated to another one )
Diffstat (limited to 'modules/sympa/templates')
-rw-r--r--modules/sympa/templates/auth.conf2
-rw-r--r--modules/sympa/templates/data_sources/ldap_group.incl2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/sympa/templates/auth.conf b/modules/sympa/templates/auth.conf
index 94f3ee35..64256253 100644
--- a/modules/sympa/templates/auth.conf
+++ b/modules/sympa/templates/auth.conf
@@ -7,7 +7,7 @@ ldap
email_attribute mail
scope sub
use_ssl 1
- bind_dn cn=sympa-alamut,ou=System Accounts,<%= dc_suffix %>
+ bind_dn cn=sympa-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
bind_password <%= ldap_password %>
authentication_info_url https://identity.<%= domain %>/
diff --git a/modules/sympa/templates/data_sources/ldap_group.incl b/modules/sympa/templates/data_sources/ldap_group.incl
index dc9addd8..4517fe26 100644
--- a/modules/sympa/templates/data_sources/ldap_group.incl
+++ b/modules/sympa/templates/data_sources/ldap_group.incl
@@ -1,7 +1,7 @@
include_ldap_2level_query
host ldap.<%= domain %>
use_ssl yes
- user cn=sympa-alamut,ou=System Accounts,<%= dc_suffix %>
+ user cn=sympa-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
passwd <%= ldap_password %>
suffix1 ou=Group,<%= dc_suffix %>
scope1 one