libsasl(5) | libsasl(5) |
libsasl - authentication library
Cyrus SASL library handling communication between an application and the Cyrus SASL authentication framework.
This document describes generic configuration options for the Cyrus SASL authentication library libsasl.
The library handles communication between an application and the Cyrus SASL authentication framework. Both exchange information before libsasl can start offering authentication services for the application.
The application, among other data, sends the service_name. The service name is the services name as specified by IANA. SMTP servers, for example, send smtp as service_name. This information is handed over by libsasl 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 libsasl during library initialization.
When an application (server) starts, it initializes the libsasl library. The application passes app_name (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 sample as app_name. Using this value the SASL library will search the configuration directories for a file named sample.conf and read configuration options from it.
Consult the applications manual to determine what app_name it sends to the Cyrus SASL library.
Configuration options for libsasl are written down together with application specific options in the applications configuration file. The application reads them and passes them over to libsasl when it loads the library.
An example for application-based configuration is the Cyrus IMAP server imapd. SASL configuration is written to imapd.conf and passed to the SASL library when the imapd server starts.
The general format of Cyrus SASL configuration file is as follows:
parameter: value
There must be no trailing whitespace after the value or Cyrus SASL will fail to apply the value appropriately!
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:
This option does not apply to the ldapdb(5) plugin. It is a read-only plugin.
The only mechanisms (as currently implemented) which don't use plaintext secrets are OTP and SRP.
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 facility they are sent and which priority is given to the message.
authdaemond(5), ldapdb(5), libsasl(5), saslauthd(8), saslauthd.conf(5), saslpasswd2(5), sasldblistusers2(5), sasldb(5), sql(5)
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 options.html.
Patrick Ben Koetter <p@state-of-mind.de>
15 April 2022 |