aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2010-11-10 17:21:43 +0000
committerDexter Morgan <dmorgan@mageia.org>2010-11-10 17:21:43 +0000
commit67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0 (patch)
tree8771b7d5269b6ae69ab8a033c999e01db3648c70 /modules
parent8e34d9535ccaabc25871a1e6be9b089248d26396 (diff)
downloadpuppet-67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0.tar
puppet-67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0.tar.gz
puppet-67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0.tar.bz2
puppet-67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0.tar.xz
puppet-67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0.zip
continue sympa config.
ldap_alias_entry.tt2 need to be fixed when the mail server will be ON.
Diffstat (limited to 'modules')
-rw-r--r--modules/sympa/manifests/init.pp16
-rw-r--r--modules/sympa/templates/auth.conf13
-rw-r--r--modules/sympa/templates/ldap_alias_entry.tt211
3 files changed, 40 insertions, 0 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index 456ceb9c..96d2f803 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -24,5 +24,21 @@ class sympa {
mode => 644,
content => template("sympa/ldap_alias_manager.conf")
}
+
+ file { '/etc/sympa/auth.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("sympa/auth.conf")
+ }
+
+ file { '/etc/sympa/ldap_alias_entry.tt2':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("sympa/ldap_alias_entry.tt2")
+ }
}
diff --git a/modules/sympa/templates/auth.conf b/modules/sympa/templates/auth.conf
new file mode 100644
index 00000000..d6882a47
--- /dev/null
+++ b/modules/sympa/templates/auth.conf
@@ -0,0 +1,13 @@
+ldap
+ host ldap.mageia.org:389
+ timeout 30
+ suffix dc=mageia,dc=org
+ get_dn_by_uid_filter (uid=[sender])
+ get_dn_by_email (|(mail=[sender])(mailalternateaddress=[sender]))
+ email_attribute mail
+ scope sub
+
+
+user_table
+ regexp .*
+
diff --git a/modules/sympa/templates/ldap_alias_entry.tt2 b/modules/sympa/templates/ldap_alias_entry.tt2
new file mode 100644
index 00000000..31a5c470
--- /dev/null
+++ b/modules/sympa/templates/ldap_alias_entry.tt2
@@ -0,0 +1,11 @@
+dn: cn=[% list.alias %],cn=[% list.domain %],[% ldap_base_dn %]
+objectClass: top
+objectClass: mailAlias
+objectClass: mailRecipient
+cn: [% list.alias %]
+mail: [% list.alias %]@[% list.domain %]
+mailTransportMode: [% list.command %]
+mailAccountStatus: active
+mailHost: mail1.example.com
+
+# vim: ft=ldif