[Mageia-sysadm] [239] continue sympa config.

root at mageia.org root at mageia.org
Wed Nov 10 18:21:43 CET 2010


Revision: 239
Author:   dmorgan
Date:     2010-11-10 18:21:43 +0100 (Wed, 10 Nov 2010)
Log Message:
-----------
continue sympa config.

ldap_alias_entry.tt2 need to be fixed when the mail server will be ON.

Modified Paths:
--------------
    puppet/modules/sympa/manifests/init.pp

Added Paths:
-----------
    puppet/modules/sympa/templates/auth.conf
    puppet/modules/sympa/templates/ldap_alias_entry.tt2

Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp	2010-11-10 16:05:35 UTC (rev 238)
+++ puppet/modules/sympa/manifests/init.pp	2010-11-10 17:21:43 UTC (rev 239)
@@ -24,5 +24,21 @@
         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")
+    }
 }
 

Added: puppet/modules/sympa/templates/auth.conf
===================================================================
--- puppet/modules/sympa/templates/auth.conf	                        (rev 0)
+++ puppet/modules/sympa/templates/auth.conf	2010-11-10 17:21:43 UTC (rev 239)
@@ -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                 .*
+

Added: puppet/modules/sympa/templates/ldap_alias_entry.tt2
===================================================================
--- puppet/modules/sympa/templates/ldap_alias_entry.tt2	                        (rev 0)
+++ puppet/modules/sympa/templates/ldap_alias_entry.tt2	2010-11-10 17:21:43 UTC (rev 239)
@@ -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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101110/bb5ae506/attachment.html>


More information about the Mageia-sysadm mailing list