[D-community-commits] r189 - in trunk/fai-config-dir: files/etc files/etc/default files/etc/default/saslauthd files/etc/saslauthd.conf package_config scripts/MAILSERVER

nd-guest at alioth.debian.org nd-guest at alioth.debian.org
Mon Jan 7 21:16:26 UTC 2008


Author: nd-guest
Date: 2008-01-07 21:16:26 +0000 (Mon, 07 Jan 2008)
New Revision: 189

Added:
   trunk/fai-config-dir/files/etc/default/
   trunk/fai-config-dir/files/etc/default/saslauthd/
   trunk/fai-config-dir/files/etc/default/saslauthd/MAILSERVER
   trunk/fai-config-dir/files/etc/saslauthd.conf/
   trunk/fai-config-dir/files/etc/saslauthd.conf/MAILSERVER
   trunk/fai-config-dir/scripts/MAILSERVER/30-saslauth
Modified:
   trunk/fai-config-dir/package_config/MAILSERVER
Log:
start configure saslauthd


Added: trunk/fai-config-dir/files/etc/default/saslauthd/MAILSERVER
===================================================================
--- trunk/fai-config-dir/files/etc/default/saslauthd/MAILSERVER	                        (rev 0)
+++ trunk/fai-config-dir/files/etc/default/saslauthd/MAILSERVER	2008-01-07 21:16:26 UTC (rev 189)
@@ -0,0 +1,40 @@
+#
+# Settings for saslauthd daemon
+#
+
+# Should saslauthd run automatically on startup? (default: no)
+START=yes
+
+# Which authentication mechanisms should saslauthd use? (default: pam)
+#
+# Available options in this Debian package:
+# getpwent  -- use the getpwent() library function
+# kerberos5 -- use Kerberos 5
+# pam       -- use PAM
+# rimap     -- use a remote IMAP server
+# shadow    -- use the local shadow password file
+# sasldb    -- use the local sasldb database file
+# ldap      -- use LDAP (configuration is in /etc/saslauthd.conf)
+#
+# Only one option may be used at a time. See the saslauthd man page
+# for more information.
+#
+# Example: MECHANISMS="pam"
+MECHANISMS="ldap"
+
+# Additional options for this mechanism. (default: none)
+# See the saslauthd man page for information about mech-specific options.
+MECH_OPTIONS=""
+
+# How many saslauthd processes should we run? (default: 5)
+# A value of 0 will fork a new process for each connection.
+THREADS=5
+
+# Other options (default: -c)
+# See the saslauthd man page for information about these options.
+#
+# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
+# Note: See /usr/share/doc/sasl2-bin/README.Debian
+OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd" 
+#OPTIONS="-c"
+CONFIG_FILE="/etc/saslauthd.conf"

Added: trunk/fai-config-dir/files/etc/saslauthd.conf/MAILSERVER
===================================================================
--- trunk/fai-config-dir/files/etc/saslauthd.conf/MAILSERVER	                        (rev 0)
+++ trunk/fai-config-dir/files/etc/saslauthd.conf/MAILSERVER	2008-01-07 21:16:26 UTC (rev 189)
@@ -0,0 +1,2 @@
+ldap_servers: ldap://127.0.0.1/
+ldap_search_base: ou=People,dc=debian-community,dc=org

Modified: trunk/fai-config-dir/package_config/MAILSERVER
===================================================================
--- trunk/fai-config-dir/package_config/MAILSERVER	2008-01-07 00:35:00 UTC (rev 188)
+++ trunk/fai-config-dir/package_config/MAILSERVER	2008-01-07 21:16:26 UTC (rev 189)
@@ -1,5 +1,9 @@
 PACKAGES aptitude-r 
-postfix postfix-tls postfix-doc postgrey
-pop-before-smtp ca-certificates
+postfix postfix-ldap postfix-doc postgrey
+ca-certificates
 swaks
-lwat
+libsasl2-modules-ldap sasl2-bin
+cyrus-admin-2.2 cyrus-clients-2.2 cyrus-imapd-2.2 cyrus-pop3d-2.2
+
+PACKAGES remove
+pop-before-smtp

Added: trunk/fai-config-dir/scripts/MAILSERVER/30-saslauth
===================================================================
--- trunk/fai-config-dir/scripts/MAILSERVER/30-saslauth	                        (rev 0)
+++ trunk/fai-config-dir/scripts/MAILSERVER/30-saslauth	2008-01-07 21:16:26 UTC (rev 189)
@@ -0,0 +1,23 @@
+#! /bin/sh
+#
+# (C) 2007 Andreas Putzo <andreas at putzo.net>
+# GPL2 licenced
+
+fcopy -M /etc/default/saslauthd
+fcopy -M /etc/saslauthd.conf
+
+# move saslauth dir into chroot'ed postfix
+if [ ! -d $target/var/spool/postfix/var/run/saslauthd ]; then
+    $ROOTCMD /etc/init.d/saslauthd stop
+    $ROOTCMD rm -r /var/run/saslauthd/
+    $ROOTCMD mkdir -p /var/spool/postfix/var/run/saslauthd/
+    $ROOTCMD ln -s /var/spool/postfix/var/run/saslauthd /var/run
+    $ROOTCMD chmod -R 750  /var/spool/postfix/var/
+    $ROOTCMD chgrp -R sasl /var/spool/postfix/var/
+    if ! grep sasl $target/etc/group |grep postfix >/dev/null; then
+        $ROOTCMD adduser postfix sasl
+    fi        
+fi
+
+$ROOTCMD /etc/init.d/saslauthd restart
+


Property changes on: trunk/fai-config-dir/scripts/MAILSERVER/30-saslauth
___________________________________________________________________
Name: svn:executable
   + *




More information about the D-community-commits mailing list