From 67a2c0cc5f27d3eae8dd83a5c21acbcc3a2e85c0 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Wed, 10 Nov 2010 17:21:43 +0000 Subject: continue sympa config. ldap_alias_entry.tt2 need to be fixed when the mail server will be ON. --- modules/sympa/manifests/init.pp | 16 ++++++++++++++++ modules/sympa/templates/auth.conf | 13 +++++++++++++ modules/sympa/templates/ldap_alias_entry.tt2 | 11 +++++++++++ 3 files changed, 40 insertions(+) create mode 100644 modules/sympa/templates/auth.conf create mode 100644 modules/sympa/templates/ldap_alias_entry.tt2 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 -- cgit v1.2.1