libsasl(5)

NAME
libsasl - authentication library

SYNOPSIS
Cyrus SASL library handling communication between an application and the Cyrus SASL authentication framework.

Description
This document describes generic configuration options for the Cyrus SASL authentication library \FClibsasl\F[].

The library handles communication between an application and the Cyrus SASL authentication framework. Both exchange information before \FClibsasl\F[] can start offering authentication services for the application.

The application, among other data, sends the \FCservice_name\F[]. The service name is the services name as specified by IANA. SMTP servers, for example, send \FCsmtp\F[] as \FCservice_name\F[]. This information is handed over by \FClibsasl\F[] e.g. when Kerberos or PAM authentication takes place.

Configuration options in general are read either from a file or passed by the application using \FClibsasl\F[] during library initialization.

File-Based configuration
When an application (server) starts, it initializes the \FClibsasl\F[] library. The application passes \FCapp_name\F[] (application name) to the SASL library. Its value is used to construct the name of the application specific SASL configuration file. The Cyrus SASL sample-server, for example, sends \FCsample\F[] as \FCapp_name\F[]. Using this value the SASL library will search the configuration directories for a file named \FCsample.conf\F[] and read configuration options from it.
    Note

    Consult the applications manual to determine what \FCapp_name\F[] it sends to the Cyrus SASL library.

Application-Based Configuration
Configuration options for \FClibsasl\F[] are written down together with application specific options in the applications configuration file. The application reads them and passes them over to \FClibsasl\F[] when it loads the library.
    Note

    An example for application-based configuration is the Cyrus IMAP server \FCimapd\F[]. SASL configuration is written to \FCimapd.conf\F[] and passed to the SASL library when the \FCimapd\F[] server starts.

Configuration Syntax
The general format of Cyrus SASL configuration file is as follows:

Configuration options
    Configuration options are written each on a single physical line. Parameter and value must be separated by a colon and a single whitespace:

    \FCparameter: value\F[]
    Important

    There must be no trailing whitespace after the value or Cyrus SASL will fail to apply the value appropriately!

Comments, Empty lines and whitespace-only lines
    Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a ‘#’.

Options
There are generic options and options specific to the password verification service or auxiliary property plugin chosen by the administrator. Such specific options are documented in manuals listed in libsasl(5).

The following configuration parameters are generic configuration options:

\FCauthdaemond_path\F[] (default: \FC/dev/null\F[])
    Path to Courier MTA authdaemond's unix socket. Only applicable when \FCpwcheck_method\F[] is set to \FCauthdaemond\F[].

\FCauto_transition\F[]: (default: \FCno\F[])
    Automatically transition users to other mechanisms when they do a successful plaintext authentication and if an auxprop plugin is used.
    Important

    This option does not apply to the ldapdb(5) plugin. It is a read-only plugin.

    \FCno\F[]
        Do not transition users to other mechanisms.

    \FCnoplain\F[]
        Transition users to other mechanisms, but write non-plaintext secrets only.

    \FCyes\F[]
        Transition users to other mechanisms.
    Note

    The only mechanisms (as currently implemented) which don't use plaintext secrets are OTP and SRP.

\FCauxprop_plugin\F[]: (default: empty)
    A whitespace-separated list of one or more auxiliary plugins used if the \FCpwcheck_method\F[] parameter specifies \FCauxprop\F[] as an option. Plugins will be queried in list order. If no plugin is specified, all available plugins will be queried.

    \FCldapdb\F[]
        Specify \FCldapdb\F[] to use the Cyrus SASL ldapdb(5) plugin.

    \FCsasldb\F[]
        Specify \FCsasldb\F[] to use the Cyrus SASL sasldb(5) plugin.

    \FCsql\F[]
        Specify \FCsql\F[] to use the Cyrus SASL sql(5) plugin.

\FClog_level\F[]: (default: \FC1\F[])
    Specifies a numeric log level. Available log levels are:

    \FC0\F[]
        Don't log anything

    \FC1\F[]
        Log unusual errors

    \FC2\F[]
        Log all authentication failures

    \FC3\F[]
        Log non-fatal warnings

    \FC4\F[]
        More verbose than 3

    \FC5\F[]
        More verbose than 4

    \FC6\F[]
        Traces of internal protocols

    \FC7\F[]
        Traces of internal protocols, including passwords
    Important

    Cyrus SASL sends log messages to the application that runs it. The application decides if it forwards such messages to the sysklogd(8) service, to which \FCfacility\F[] they are sent and which \FCpriority\F[] is given to the message.

\FCmech_list\F[]: (default: empty)
    The optional \FCmech_list\F[] parameter specifies a whitespace-separated list of one or more mechanisms allowed for authentication.

\FCpwcheck_method\F[]: (default: \FCauxprop\F[])
    A whitespace-separated list of one or more mechanisms. Cyrus SASL provides the following mechanisms:

    \FCauthdaemond\F[]
        Configures Cyrus SASL to contact the Courier MTA authdaemond(8) password verification service for password verification.

    \FCalwaystrue\F[]
        Lets the pwcheck succeed always.

    \FCauxprop\F[]
        Cyrus SASL will use its own plugin infrastructure to verify passwords. The \FCauxprop_plugin\F[] parameter controls which plugins will be used.

    \FCpwcheck\F[]
        Verify passwords using the Cyrus SASL pwcheck(8) password verification service. The pwcheck daemon is considered deprecated and should not be used anymore. Use the saslauthd password verification service instead.

    \FCsaslauthd\F[]
        Verify passwords using the Cyrus SASL saslauthd(8) password verification service.

\FCsaslauthd_path\F[]: (default: empty)
    Path to saslauthd(8) run directory (including the \FC/mux\F[] named pipe)

See also
authdaemond(5), ldapdb(5), libsasl(5), saslauthd(8), saslauthd.conf(5), saslpasswd2(5), sasldblistusers2(5), sasldb(5), sql(5)

Author
This manual was written for the Debian distribution because the original program does not have a manual page. Parts of the documentation have been taken from the Cyrus SASL's \FCoptions.html\F[].

    Patrick Ben Koetter
    <\FCp@state-of-mind.de\F[]>