aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sympa')
-rw-r--r--modules/sympa/manifests/init.pp8
-rw-r--r--modules/sympa/templates/ldap_alias_manager.conf24
-rw-r--r--modules/sympa/templates/sympa.conf4
3 files changed, 34 insertions, 2 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index 5534b862..456ceb9c 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -7,6 +7,7 @@ class sympa {
}
$password = extlookup("sympa_password")
+ $ldappass = extlookup("sympa_ldap")
file { '/etc/sympa/sympa.conf':
ensure => present,
@@ -16,5 +17,12 @@ class sympa {
content => template("sympa/sympa.conf")
}
+ file { '/etc/sympa/ldap_alias_manager.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("sympa/ldap_alias_manager.conf")
+ }
}
diff --git a/modules/sympa/templates/ldap_alias_manager.conf b/modules/sympa/templates/ldap_alias_manager.conf
new file mode 100644
index 00000000..8adf9578
--- /dev/null
+++ b/modules/sympa/templates/ldap_alias_manager.conf
@@ -0,0 +1,24 @@
+## This configuration file is used by the ldap_alias_manager.pl ; it allows to manage mail aliases in an LDAP directory
+## To make sympa use the ldap_alias_manager.pl script, you should edit the 'ldap_manager' sympa.conf parameter
+## To use this file, you should copy it to the /home/sympa/etc/ directory
+
+#LDAP server host
+ldap_host ldap.<%= domain %>
+
+#LDAP bind DN
+cn=alamut-sympa,ou=System Accounts,dc=mageia,dc=org
+#LDAP bind password
+ldap_bind_pwd <%= ldappass %>
+
+#LDAP Base DN
+ldap_base_dn ou=mail,dc=mageia,dc=org
+
+#LDAP Mail attribute
+ldap_mail_attribute mail
+
+#LDAP SSL
+ldap_ssl 0
+
+#LDAP CA Chain file
+#ldap_cachain /etc/ldap/cert/cachain.pem
+~
diff --git a/modules/sympa/templates/sympa.conf b/modules/sympa/templates/sympa.conf
index 602ee0ae..ede0f364 100644
--- a/modules/sympa/templates/sympa.conf
+++ b/modules/sympa/templates/sympa.conf
@@ -254,7 +254,7 @@ db_type Pg
db_name sympa
## The host hosting your sympa database
-db_host pgsql.<%= domain %>;
+db_host pgsql.<%= domain %>
## The database port
db_port 5432/tcp
@@ -264,7 +264,7 @@ db_user sympa
## Database password (associated to the db_user)
## What ever you use a password or not, you must protect the SQL server (is it a not a public internet service ?)
-db_passwd <%= password %>;
+db_passwd <%= password %>
## Database private extention to user table
## You need to extend the database format with these fields