3 # $NetBSD: saslauthd.sh,v 1.2 2004/01/12 04:52:34 jlam Exp $
5 # The saslauthd daemon allows cleartext UNIX password authentication via
6 # several authentication mechanisms with Cyrus SASL.
11 if [ -f /etc/rc.subr ]; then
17 command="@PREFIX@/sbin/saslauthd"
18 pidfile="@SASLSOCKETDIR@/${name}.pid"
19 start_precmd="saslauthd_precmd"
21 # Default to authenticating against local password database.
22 : ${saslauthd_flags="-a getpwent"}
26 if [ ! -d @SASLSOCKETDIR@ ]; then
27 @MKDIR@ @SASLSOCKETDIR@
28 @CHMOD@ 0755 @SASLSOCKETDIR@
29 @CHOWN@ @ROOT_USER@ @SASLSOCKETDIR@
33 if [ -f /etc/rc.subr ]; then
38 ${command} ${saslauthd_flags} ${command_args}