# 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
# 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"