diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-09 19:44:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-09 19:44:10 +0000 |
commit | 1ffd1b5f21535c23c0be2c033900e504d3b271ff (patch) | |
tree | 6e52d07c2aa846ea774479db30d5c21ad1528d8a /security/cyrus-saslauthd/files | |
parent | ab147d0e74442dc100a148c5b77145fd6b1f434b (diff) | |
download | pkgsrc-1ffd1b5f21535c23c0be2c033900e504d3b271ff.tar.gz |
Initial import of cyrus-saslauthd-2.1.17 as security/cyrus-saslauthd.
saslauthd is a daemon process that handles plaintext authentication
requests on behalf of the Cyrus SASL library. It may be compiled to
support authentication using getpwent, PAM, or an LDAP database.
Diffstat (limited to 'security/cyrus-saslauthd/files')
-rw-r--r-- | security/cyrus-saslauthd/files/saslauthd.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/security/cyrus-saslauthd/files/saslauthd.sh b/security/cyrus-saslauthd/files/saslauthd.sh new file mode 100644 index 00000000000..f28560904b9 --- /dev/null +++ b/security/cyrus-saslauthd/files/saslauthd.sh @@ -0,0 +1,40 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: saslauthd.sh,v 1.1.1.1 2004/01/09 19:44:10 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" +start_precmd="saslauthd_precmd" + +# Default to authenticating against local password database. +if [ -z "${saslauthd_flags}" ]; then + saslauthd_flags="-a getpwent" +fi + +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 |