[Mageia-sysadm] [235] Add ldap template file
root at mageia.org
root at mageia.org
Wed Nov 10 15:56:47 CET 2010
Revision: 235
Author: dmorgan
Date: 2010-11-10 15:56:47 +0100 (Wed, 10 Nov 2010)
Log Message:
-----------
Add ldap template file
Modified Paths:
--------------
puppet/modules/sympa/manifests/init.pp
puppet/modules/sympa/templates/sympa.conf
Added Paths:
-----------
puppet/modules/sympa/templates/ldap_alias_manager.conf
Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp 2010-11-10 14:34:31 UTC (rev 234)
+++ puppet/modules/sympa/manifests/init.pp 2010-11-10 14:56:47 UTC (rev 235)
@@ -7,6 +7,7 @@
}
$password = extlookup("sympa_password")
+ $ldappass = extlookup("sympa_ldap")
file { '/etc/sympa/sympa.conf':
ensure => present,
@@ -16,5 +17,12 @@
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")
+ }
}
Added: puppet/modules/sympa/templates/ldap_alias_manager.conf
===================================================================
--- puppet/modules/sympa/templates/ldap_alias_manager.conf (rev 0)
+++ puppet/modules/sympa/templates/ldap_alias_manager.conf 2010-11-10 14:56:47 UTC (rev 235)
@@ -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
+~
Modified: puppet/modules/sympa/templates/sympa.conf
===================================================================
--- puppet/modules/sympa/templates/sympa.conf 2010-11-10 14:34:31 UTC (rev 234)
+++ puppet/modules/sympa/templates/sympa.conf 2010-11-10 14:56:47 UTC (rev 235)
@@ -254,7 +254,7 @@
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 @@
## 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101110/d239584d/attachment.html>
More information about the Mageia-sysadm
mailing list