[da4aff6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[da4aff6] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cyrus-sasl-download-http "http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-&cyrus-sasl-version;.tar.gz ">
|
---|
| 8 | <!ENTITY cyrus-sasl-download-ftp "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-&cyrus-sasl-version;.tar.gz">
|
---|
[1f01e700] | 9 | <!ENTITY cyrus-sasl-md5sum "dde02db234dea892bee298390890502e">
|
---|
| 10 | <!ENTITY cyrus-sasl-size "1.6 MB">
|
---|
| 11 | <!ENTITY cyrus-sasl-buildsize "16 MB">
|
---|
| 12 | <!ENTITY cyrus-sasl-time "0.3 SBU">
|
---|
[da4aff6] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cyrus-sasl" xreflabel="Cyrus SASL-&cyrus-sasl-version;">
|
---|
[1cc0752] | 16 | <?dbhtml filename="cyrus-sasl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Cyrus SASL-&cyrus-sasl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="cyrus-sasl">
|
---|
| 26 | <primary sortas="a-Cyrus-SASL">Cyrus SASL</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Cyrus SASL</title>
|
---|
| 31 |
|
---|
[0afcfa88] | 32 | <para>The <application>Cyrus SASL</application> package contains a Simple
|
---|
| 33 | Authentication and Security Layer, a method for adding authentication
|
---|
| 34 | support to connection-based protocols. To use SASL, a protocol includes a
|
---|
| 35 | command for identifying and authenticating a user to a server and for
|
---|
| 36 | optionally negotiating protection of subsequent protocol interactions. If
|
---|
| 37 | its use is negotiated, a security layer is inserted between the protocol
|
---|
[1cc0752] | 38 | and the connection.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&cyrus-sasl-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&cyrus-sasl-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &cyrus-sasl-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &cyrus-sasl-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &cyrus-sasl-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &cyrus-sasl-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Cyrus SASL Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 65 | <para><xref linkend="openssl"/></para>
|
---|
| 66 |
|
---|
| 67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0afcfa88] | 68 | <para><xref linkend="Linux_PAM"/>,
|
---|
| 69 | <xref linkend="openldap"/>,
|
---|
| 70 | <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
|
---|
| 71 | <xref linkend="jdk"/>,
|
---|
| 72 | <xref linkend="mysql"/>,
|
---|
| 73 | <xref linkend="postgresql"/>,
|
---|
| 74 | <xref linkend="db"/>,
|
---|
| 75 | <xref linkend="gdbm"/>,
|
---|
[b0ff55f3] | 76 | <!-- <xref linkend="courier"/>, -->
|
---|
[0afcfa88] | 77 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
| 78 | <ulink url="http://sqlite.org/">SQLite</ulink> and
|
---|
[1cc0752] | 79 | <ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of Cyrus SASL</title>
|
---|
| 85 |
|
---|
[0afcfa88] | 86 | <para>Install <application>Cyrus SASL</application> by
|
---|
[1cc0752] | 87 | running the following commands:</para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
[a8c9494] | 90 | --with-dbpath=/var/lib/sasl/sasldb2 \
|
---|
| 91 | --with-saslauthd=/var/run &&
|
---|
[1cc0752] | 92 | make</userinput></screen>
|
---|
[305e60de] | 93 |
|
---|
[1f01e700] | 94 | <para>This package does not come with a test suite. If you are planning
|
---|
| 95 | on using the GSSAPI authentication mechanism, it is recommended to test
|
---|
| 96 | it after installing the package using the sample server and client programs
|
---|
| 97 | which were built in the preceding step. Instructions for performing the
|
---|
| 98 | tests can be found at <ulink
|
---|
| 99 | url="http://www.linuxfromscratch.org/hints/downloads/files/cyrus-sasl.txt"/>.</para>
|
---|
| 100 |
|
---|
[1cc0752] | 101 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[305e60de] | 102 |
|
---|
[1cc0752] | 103 | <screen role="root"><userinput>make install &&
|
---|
[1f01e700] | 104 | install -v -m644 saslauthd/saslauthd.8 /usr/share/man/man8 &&
|
---|
| 105 | install -v -m755 -d /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; &&
|
---|
[dfdbccd] | 106 | install -v -m644 doc/{*.{html,txt,fig},ONEWS,TODO} \
|
---|
[72e3bf7] | 107 | saslauthd/LDAP_SASLAUTHD /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; &&
|
---|
[1f01e700] | 108 | install -v -m700 -d /var/lib/sasl</userinput></screen>
|
---|
[da4aff6] | 109 |
|
---|
[1cc0752] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[0afcfa88] | 115 | <para><parameter>--with-dbpath=/var/lib/sasl/sasldb2</parameter>: This
|
---|
[1cc0752] | 116 | parameter forces the <command>saslauthd</command> database to be created
|
---|
[0afcfa88] | 117 | in <filename class='directory'>/var/lib/sasl</filename> instead of
|
---|
[1cc0752] | 118 | <filename class='directory'>/etc</filename>.</para>
|
---|
[da4aff6] | 119 |
|
---|
[0afcfa88] | 120 | <para><parameter>--with-saslauthd=/var/run</parameter>: This parameter
|
---|
| 121 | forces <command>saslauthd</command> to use the FHS compliant
|
---|
| 122 | directory <filename class='directory'>/var/run</filename> for variable
|
---|
[1cc0752] | 123 | run-time data.</para>
|
---|
| 124 |
|
---|
| 125 | <para><option>--with-ldap</option>: This parameter enables use
|
---|
| 126 | with <application>OpenLDAP</application>.</para>
|
---|
| 127 |
|
---|
[1f01e700] | 128 | <para><option>--enable-ldapdb</option>: This parameter enables the
|
---|
| 129 | LDAPDB authentication backend. There is a circular dependency with this
|
---|
| 130 | parameter which requires you to build the
|
---|
| 131 | <application>Cyrus SASL</application> package, then the
|
---|
| 132 | <application>OpenLDAP</application> package (with SASL support), then
|
---|
| 133 | finally building the <application>Cyrus SASL</application> package again
|
---|
| 134 | with this parameter.</para>
|
---|
| 135 |
|
---|
[0afcfa88] | 136 | <para><command>install -v -m644 ...</command>: These commands
|
---|
| 137 | install documentation which is not installed by the
|
---|
[1cc0752] | 138 | <command>make install</command> command.</para>
|
---|
| 139 |
|
---|
[1f01e700] | 140 | <para><command>install -v -m700 -d /var/lib/sasl</command>: This directory
|
---|
[0afcfa88] | 141 | must exist when starting <command>saslauthd</command>. If you're not going
|
---|
[1cc0752] | 142 | to be running the daemon, you may omit the creation of this directory.</para>
|
---|
| 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="configuration">
|
---|
| 147 | <title>Configuring Cyrus SASL</title>
|
---|
| 148 |
|
---|
| 149 | <sect3 id="cyrus-sasl-config">
|
---|
| 150 | <title>Config Files</title>
|
---|
| 151 |
|
---|
[0afcfa88] | 152 | <para><filename>/etc/saslauthd.conf</filename> (for LDAP configuration)
|
---|
| 153 | and <filename>/usr/lib/sasl2/Appname.conf</filename> (where "Appname"
|
---|
[1cc0752] | 154 | is the application defined name of the application)</para>
|
---|
| 155 |
|
---|
| 156 | <indexterm zone="cyrus-sasl cyrus-sasl-config">
|
---|
| 157 | <primary sortas="e-etc-saslauthd.conf">/etc/saslauthd.conf</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 |
|
---|
| 160 | </sect3>
|
---|
| 161 |
|
---|
| 162 | <sect3>
|
---|
| 163 | <title>Configuration Information</title>
|
---|
| 164 |
|
---|
[0afcfa88] | 165 | <para>See <ulink
|
---|
[d612b9f] | 166 | url="file:///usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/sysadmin.html"/>
|
---|
[0afcfa88] | 167 | for information on what to include in the application configuration files.
|
---|
| 168 | See <ulink
|
---|
[d612b9f] | 169 | url="file:///usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/LDAP_SASLAUTHD"/>
|
---|
[1f01e700] | 170 | for configuring <command>saslauthd</command> with
|
---|
| 171 | <application>OpenLDAP</application>.</para>
|
---|
[1cc0752] | 172 |
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | <sect3 id="cyrus-sasl-init">
|
---|
| 176 | <title>Init Script</title>
|
---|
| 177 |
|
---|
[0afcfa88] | 178 | <para>If you need to run the <command>saslauthd</command> daemon at system
|
---|
[1cc0752] | 179 | startup, install the <filename>/etc/rc.d/init.d/cyrus-sasl</filename>
|
---|
[d612b9f] | 180 | init script included in the <xref linkend="intro-important-bootscripts"/>
|
---|
[1cc0752] | 181 | package.</para>
|
---|
| 182 |
|
---|
| 183 | <indexterm zone="cyrus-sasl cyrus-sasl-init">
|
---|
| 184 | <primary sortas="f-cyrus-sasl-init">cyrus-sasl</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 |
|
---|
| 187 | <screen role="root"><userinput>make install-cyrus-sasl</userinput></screen>
|
---|
| 188 |
|
---|
| 189 | <note>
|
---|
[0afcfa88] | 190 | <para>You'll need to modify the init script and replace the
|
---|
| 191 | <option><replaceable>[authmech]</replaceable></option> parameter
|
---|
| 192 | to the <option>-a</option> switch with your desired authentication
|
---|
[1cc0752] | 193 | mechanism.</para>
|
---|
| 194 | </note>
|
---|
| 195 |
|
---|
| 196 | </sect3>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | <sect2 role="content">
|
---|
| 201 | <title>Contents</title>
|
---|
| 202 |
|
---|
| 203 | <segmentedlist>
|
---|
| 204 | <segtitle>Installed Programs</segtitle>
|
---|
| 205 | <segtitle>Installed Libraries</segtitle>
|
---|
| 206 | <segtitle>Installed Directories</segtitle>
|
---|
| 207 |
|
---|
| 208 | <seglistitem>
|
---|
| 209 | <seg>saslauthd, sasldblistusers2, and saslpasswd2</seg>
|
---|
[1f01e700] | 210 | <seg>libjavasasl.so, libsasl2.so, and numerous SASL plugins and
|
---|
| 211 | Java classes</seg>
|
---|
| 212 | <seg>/usr/include/sasl, /usr/lib/java/classes/sasl, /usr/lib/sasl2,
|
---|
[1cc0752] | 213 | /usr/share/doc/cyrus-sasl-&cyrus-sasl-version;, and /var/lib/sasl</seg>
|
---|
| 214 | </seglistitem>
|
---|
| 215 | </segmentedlist>
|
---|
| 216 |
|
---|
| 217 | <variablelist>
|
---|
| 218 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 219 | <?dbfo list-presentation="list"?>
|
---|
| 220 | <?dbhtml list-presentation="table"?>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="saslauthd">
|
---|
| 223 | <term><command>saslauthd</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>is the SASL authentication server.</para>
|
---|
| 226 | <indexterm zone="cyrus-sasl saslauthd">
|
---|
| 227 | <primary sortas="b-saslauthd">saslauthd</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | <varlistentry id="sasldblistusers2">
|
---|
| 233 | <term><command>sasldblistusers2</command></term>
|
---|
| 234 | <listitem>
|
---|
| 235 | <para>is used to list the users in the SASL password database.</para>
|
---|
| 236 | <indexterm zone="cyrus-sasl sasldblistusers2">
|
---|
| 237 | <primary sortas="b-sasldblistusers2">sasldblistusers2</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="saslpasswd2">
|
---|
| 243 | <term><command>saslpasswd2</command></term>
|
---|
| 244 | <listitem>
|
---|
[0afcfa88] | 245 | <para>is used to set and delete a user's SASL password and
|
---|
[1cc0752] | 246 | mechanism specific secrets in the SASL password database.</para>
|
---|
| 247 | <indexterm zone="cyrus-sasl saslpasswd2">
|
---|
| 248 | <primary sortas="b-saslpasswd2">saslpasswd2</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="libsasl2">
|
---|
| 254 | <term><filename class='libraryfile'>libsasl2.so</filename></term>
|
---|
| 255 | <listitem>
|
---|
[0afcfa88] | 256 | <para>is a general purpose authentication library for server and
|
---|
[1cc0752] | 257 | client applications.</para>
|
---|
| 258 | <indexterm zone="cyrus-sasl libsasl2">
|
---|
| 259 | <primary sortas="c-libsasl2">libsasl2.so</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | </variablelist>
|
---|
| 265 |
|
---|
| 266 | </sect2>
|
---|
| 267 |
|
---|
| 268 | </sect1>
|
---|