.\" I have no idea how long this broken and entirely unreadable manpage has .\" been shipped with cyrus-sasl but it astounds me that it hasn't been .\" fixed, so this is a fixed version. .\" .\" - Vincent Danen <vdanen@opensls.org> .\" .TH "SASLAUTHD" "8" "10 24 2002" "CMU-SASL" "BSD System Manager's Manual" .SH "NAME" .LP \fBsaslauth\fR \- sasl authentication server .SH "SYNOPSIS" .LP .B saslauthd .RB [ -a\ authmech ] .RB [ -Tvdchl ] .RB [ -O\ option ] .RB [ -m\ mmux_path ] .RB [ -n\ threads ] .RB [ -s\ size ] .RB [ -t\ timeout ] .SH "DESCRIPTION" .LP .I saslauthd is a daemon process that handles plaintext authentication requests on behalf of the SASL library. .LP The server fulfills two roles: it isolates all code requiring superuser privileges into a single process, and it can be used to provide \fUproxy\fR authentication services to clients that do not understand SASL based authentication. .LP .I saslauthd should be started from the system boot scripts when going to multi-user mode. When running against a protected authentication database (e.g. the shadow mechanism), it must be run as the superuser. .LP .B Options .LP Options named by lower-case letters configure the server itself. Upper-case options control the behavior of specific authentication mecha- nisms; their applicability to a particular authentication mechanism is described in the \fBAUTHENTICATION MECHANISMS\fR section. .TP .B -a\ authmech Use \fIauthmech\fR as the authentication mechanism. (See the \fBAUTHENTICATION MECHANISMS\fR section below.) This parameter is mandatory. .TP .B -O\ option A mechanism specific option (e.g. rimap hostname or config file path) .TP .B -H\ hostname The remote host to be contacted by the rimap authentication mech- anism. (Depricated, use -O instead) .TP .B -m mpath Use \fImpath\fR as the pathname to the named socket to listen on for connection requests. This must be an absolute pathname, and MUST NOT include the trailing "/mux". Note that the default for this value is "/var/state/saslauthd" (or what was specified at compile time) and that this directory must exist for saslauthd to func- tion. .TP .B -n\ threads Use \fIthreads\fR processes for responding to authentication queries. (default: 5) A value of zero will indicate that saslauthd should fork an individual process for each connection. This can solve leaks that occur in some deployments.. .TP .B -s\ size Use \fIsize\fR as the table size of the hash table (in kilobytes) .TP .B -t\ timeout Use \fItimeout\fR as the expiration time of the authentication cache (in seconds) .TP .B -T Honour time-of-day login restrictions. .TP .B -h Show usage information .TP .B -c Enable cacheing of authentication credentials .TP .B -l Disable the use of a lock file for controlling access to accept(). .TP .B -v Print the version number and available authentication mechanisms on standard error, then exit. .TP .B -d Debugging mode. .LP .B Logging .LP \fIsaslauthd\fR logs it's activities via \fIsyslogd\fR using the LOG_AUTH facility. .LP .B AUTHENTICATION MECHANISMS .LP \fIsaslauthd\fR supports one or more "authentication mechanisms", dependent upon the facilities provided by the underlying operating system. The mechanism is selected by the \fB-aho\fR flag from the following list of choices: .TP dce .B (AIX) .IP Authenticate using the DCE authentication environment. .TP getpwent .B (All platforms) .IP Authenticate using the \fBgetpwent\fR() library function. Typically this authenticates against the local password file. See your systems getpwent(3) man page for details. .TP kerberos4 .B (All platforms) .IP Authenticate against the local Kerberos 4 realm. (See the \fBNOTES\fR section for caveats about this driver.) .TP kerberos5 .B (All platforms) .IP Authenticate against the local Kerberos 5 realm. .TP pam .B (Linux, Solaris) .IP Authenticate using Pluggable Authentication Modules (PAM). .TP rimap .B (All platforms) .IP Forward authentication requests to a remote IMAP server. This driver connects to a remote IMAP server, specified using the -O flag, and attempts to login (via an IMAP `LOGIN' command) using the credentials supplied to the local server. If the remote authentication succeeds the local connection is also considered to be authenticated. The remote connection is closed as soon as the tagged response from the `LOGIN' command is received from the remote server. .IP The \fBoption\fR parameter to the \fB-O\fR flag describes the remote server to forward authentication requests to. \fBhostname\fR can be a hostname (imap.example.com) or a dotted-quad IP address (192.168.0.1). The latter is useful if the remote server is multi-homed and has network interfaces that are unreachable from the local IMAP server. The remote host is contacted on the `imap' service port. A non-default port can be specified by appending a slash and the port name or number to the \fBhostname\fR argument. .IP The \fB-O\fR flag and argument are mandatory when using the rimap mechanism. .TP shadow .B (AIX, Irix, Linux, Solaris) .IP Authenticate against the local "shadow password file". The exact mechanism is system dependent. \fIsaslauthd\fR currently understands the \fBgetspnam\fR() and \fBgetuserpw\fR() library routines. Some systems honour the \fB-T\fR flag. .TP sasldb .B (All platforms) .IP Authenticate against the SASL authentication database. Note that this is probabally not what you want to be using, and is even disabled at compile-time by default. If you want to use sasldb with the SASL library, you probably want to use the pwcheck_method of "auxprop" along with the sasldb auxprop plu- gin instead. .TP ldap .B (All platforms that support OpenLDAP 2.0 or higher) .IP Authenticate against an ldap server. The ldap configuration parameters are read from /usr/local/etc/saslauthd.conf. The location of this file can be changed with the -O parameter. See the LDAP_SASLAUTHD file included with the distribution for the list of available parameters. .TP sia .B (Digital UNIX) .IP Authenticate using the Digital UNIX Security Integration Architecture (a.k.a. "enhanced security"). .SH "NOTES" .LP The kerberos4 authentication driver consumes considerable resources. To perform an authentication it must obtain a ticket granting ticket from the TGT server \fBon every authentication request.\fR The Kerberos library rou- tines that obtain the TGT also create a local ticket file, on the reason- able assumption that you will want to save the TGT for use by other Ker- beros applications. These ticket files are unusable by \fIsaslauthd\fR, how- ever there is no way not to create them. The overhead of creating and removing these ticket files can cause serious performance degradation on busy servers. (Kerberos was never intended to be used in this manner, anyway.) .SH "FILES" .TP /var/run/saslauthd/mux The default communications socket. .TP /usr/local/etc/saslauthd.conf The default configuration file for ldap support. .SH "SEE ALSO" .LP passwd(1), getpwent(3), getspnam(3), getuserpw(3), sasl_checkpass(3), sia_authenticate_user(3)