diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sympa/manifests/init.pp | 16 | ||||
-rw-r--r-- | modules/sympa/templates/auth.conf | 13 | ||||
-rw-r--r-- | modules/sympa/templates/ldap_alias_entry.tt2 | 11 |
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 |