]> git.pld-linux.org Git - packages/cyrus-sasl.git/commitdiff
- add $SASLAUTHD_THREADS and $SASLAUTHD_CACHE options
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 3 Feb 2009 15:36:19 +0000 (15:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    saslauthd.init -> 1.11
    saslauthd.sysconfig -> 1.4

saslauthd.init
saslauthd.sysconfig

index 3abbb18c6d2f2ea67b4eaf2a8ae2dfede524e51d..41ee545b3216c8e44ecaa03735e7ceee5b15f3c4 100644 (file)
 # Get service config
 [ -f /etc/sysconfig/saslauthd ] && . /etc/sysconfig/saslauthd
 
-if [ "x$SASL_AUTHMECH" != "x" ]; then
+if [ "$SASL_AUTHMECH" ]; then
        SASLAUTHD_OPTS="$SASLAUTHD_OPTS -a $SASL_AUTHMECH"
 fi
 
-if [ "x$SASL_RIMAP_HOSTNAME" != "x" ]; then
+if [ "$SASL_RIMAP_HOSTNAME" ]; then
        SASLAUTHD_OPTS="$SASLAUTHD_OPTS -O $SASL_RIMAP_HOSTNAME"
 fi
 
+if is_yes "$SASLAUTHD_CACHE"; then
+       SASLAUTHD_OPTS="$SASLAUTHD_OPTS -c"
+fi
+
+if [ "$SASLAUTHD_THREADS" ]; then
+       SASLAUTHD_OPTS="$SASLAUTHD_OPTS -n $SASLAUTHD_THREADS"
+fi
+
 start() {
        if [ ! -f /var/lock/subsys/saslauthd ]; then
                msg_starting saslauthd
index e2ce5e92886405db86b7d2750a37b1d7f05987bb..d2301f26590c70ed76849d4909743fbad7052c07 100644 (file)
@@ -6,6 +6,11 @@ SASL_AUTHMECH=pam
 # Hostname for remote IMAP server (if rimap auth mech is used)
 SASL_RIMAP_HOSTNAME=
 
-# Honour time-of-day login restrictions (if shadow auth mech is used)
-# SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes
-# --- not longer used
+# Enable cacheing of authentication credentials
+#SASLAUTHD_CACHE="yes"
+
+# Use threads processes for responding to authentication queries. (default: 5)
+#SASLAUTHD_THREADS="5"
+
+# any other option not covered with an configuration variable
+#SASLAUTHD_OPTS="-c"
This page took 0.105172 seconds and 4 git commands to generate.