pkgsrc/security/cyrus-saslauthd/files/saslauthd.sh
jlam 8e156b5599 Updated security/cyrus-sasl2 to 2.1.19. Changes from version 2.1.18
include:

* Fixes to saslauthd to allow better integration with realms (-r flag to
  saslauthd, %R token in LDAP module)
* A nontrivial number of small bugfixes.
2004-08-04 20:08:38 +00:00

39 lines
902 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: saslauthd.sh,v 1.3 2004/08/04 20:08:38 jlam Exp $
#
# The saslauthd daemon allows cleartext UNIX password authentication via
# several authentication mechanisms with Cyrus SASL.
#
# PROVIDE: saslauthd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="saslauthd"
rcvar="${name}"
command="@PREFIX@/sbin/saslauthd"
pidfile="@SASLSOCKETDIR@/${name}.pid"
start_precmd="saslauthd_precmd"
# Default to authenticating against local password database.
: ${saslauthd_flags="-a getpwent"}
saslauthd_precmd()
{
if [ ! -d @SASLSOCKETDIR@ ]; then
@MKDIR@ @SASLSOCKETDIR@
@CHMOD@ 0755 @SASLSOCKETDIR@
@CHOWN@ @ROOT_USER@ @SASLSOCKETDIR@
fi
}
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${saslauthd_flags} ${command_args}
fi