From 92dd221e8d084ab92682ff8ae215f9b76128e852 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 8 Mar 2011 15:50:16 +0000 Subject: - 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 ) --- modules/sympa/templates/auth.conf | 2 +- modules/sympa/templates/data_sources/ldap_group.incl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/sympa') 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 -- cgit v1.2.1