[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 |
|
---|
[42cedf2] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Required patch: <ulink
|
---|
[4891ef3] | 66 | url="&patch-root;/cyrus-sasl-&cyrus-sasl-version;-openldap23-1.patch"/></para>
|
---|
[42cedf2] | 67 | </listitem>
|
---|
[635cb25] | 68 | <listitem>
|
---|
| 69 | <para>Required patch: <ulink
|
---|
| 70 | url="&patch-root;/cyrus-sasl-&cyrus-sasl-version;-openssl98-1.patch"/></para>
|
---|
| 71 | </listitem>
|
---|
[42cedf2] | 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[1cc0752] | 74 | <bridgehead renderas="sect3">Cyrus SASL Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e19ad480] | 77 | <para role="required"><xref linkend="openssl"/></para>
|
---|
[1cc0752] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 80 | <para role="optional"><xref linkend="linux-pam"/>,
|
---|
[0afcfa88] | 81 | <xref linkend="openldap"/>,
|
---|
| 82 | <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
|
---|
| 83 | <xref linkend="jdk"/>,
|
---|
| 84 | <xref linkend="mysql"/>,
|
---|
| 85 | <xref linkend="postgresql"/>,
|
---|
[3f87e4a] | 86 | <!-- <xref linkend="db"/>, -->
|
---|
[0afcfa88] | 87 | <xref linkend="gdbm"/>,
|
---|
[b0ff55f3] | 88 | <!-- <xref linkend="courier"/>, -->
|
---|
[0afcfa88] | 89 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
[3f87e4a] | 90 | <ulink url="http://sqlite.org/">SQLite</ulink>, and
|
---|
[1cc0752] | 91 | <ulink url="http://dmalloc.com/">Dmalloc</ulink></para>
|
---|
| 92 |
|
---|
[3597eb6] | 93 | <para condition="html" role="usernotes">User Notes:
|
---|
| 94 | <ulink url="&blfs-wiki;/cyrus-sasl"/></para>
|
---|
| 95 |
|
---|
[1cc0752] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of Cyrus SASL</title>
|
---|
| 100 |
|
---|
[0afcfa88] | 101 | <para>Install <application>Cyrus SASL</application> by
|
---|
[1cc0752] | 102 | running the following commands:</para>
|
---|
| 103 |
|
---|
[4891ef3] | 104 | <screen><userinput>patch -Np1 -i ../cyrus-sasl-&cyrus-sasl-version;-openldap23-1.patch &&
|
---|
[635cb25] | 105 | patch -Np1 -i ../cyrus-sasl-&cyrus-sasl-version;-openssl98-1.patch &&
|
---|
[4891ef3] | 106 | sed -i '/sasl_global/s/^static //' lib/client.c &&
|
---|
| 107 | sed -i 's/cat8/man8/' saslauthd/Makefile.in &&
|
---|
[42cedf2] | 108 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
[a8c9494] | 109 | --with-dbpath=/var/lib/sasl/sasldb2 \
|
---|
| 110 | --with-saslauthd=/var/run &&
|
---|
[1cc0752] | 111 | make</userinput></screen>
|
---|
[305e60de] | 112 |
|
---|
[1f01e700] | 113 | <para>This package does not come with a test suite. If you are planning
|
---|
| 114 | on using the GSSAPI authentication mechanism, it is recommended to test
|
---|
| 115 | it after installing the package using the sample server and client programs
|
---|
| 116 | which were built in the preceding step. Instructions for performing the
|
---|
| 117 | tests can be found at <ulink
|
---|
[01bf7b38] | 118 | url="&hints-root;/downloads/files/cyrus-sasl.txt"/>.</para>
|
---|
[1f01e700] | 119 |
|
---|
[1cc0752] | 120 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[305e60de] | 121 |
|
---|
[1cc0752] | 122 | <screen role="root"><userinput>make install &&
|
---|
[1f01e700] | 123 | install -v -m755 -d /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; &&
|
---|
[dfdbccd] | 124 | install -v -m644 doc/{*.{html,txt,fig},ONEWS,TODO} \
|
---|
[72e3bf7] | 125 | saslauthd/LDAP_SASLAUTHD /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; &&
|
---|
[1f01e700] | 126 | install -v -m700 -d /var/lib/sasl</userinput></screen>
|
---|
[da4aff6] | 127 |
|
---|
[1cc0752] | 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
| 132 |
|
---|
[4891ef3] | 133 | <para><command>sed ... lib/client.c</command>: This command fixes an issue
|
---|
| 134 | when compiling <application>Cyrus SASL</application> with
|
---|
| 135 | <application>GCC-4</application>.</para>
|
---|
| 136 |
|
---|
| 137 | <para><command>sed 's/cat8/man8/' ...</command>: This command puts the
|
---|
| 138 | <command>saslauthd</command> man page in a more standard location.</para>
|
---|
| 139 |
|
---|
[0afcfa88] | 140 | <para><parameter>--with-dbpath=/var/lib/sasl/sasldb2</parameter>: This
|
---|
[1cc0752] | 141 | parameter forces the <command>saslauthd</command> database to be created
|
---|
[0afcfa88] | 142 | in <filename class='directory'>/var/lib/sasl</filename> instead of
|
---|
[1cc0752] | 143 | <filename class='directory'>/etc</filename>.</para>
|
---|
[da4aff6] | 144 |
|
---|
[0afcfa88] | 145 | <para><parameter>--with-saslauthd=/var/run</parameter>: This parameter
|
---|
| 146 | forces <command>saslauthd</command> to use the FHS compliant
|
---|
| 147 | directory <filename class='directory'>/var/run</filename> for variable
|
---|
[1cc0752] | 148 | run-time data.</para>
|
---|
| 149 |
|
---|
| 150 | <para><option>--with-ldap</option>: This parameter enables use
|
---|
| 151 | with <application>OpenLDAP</application>.</para>
|
---|
| 152 |
|
---|
[1f01e700] | 153 | <para><option>--enable-ldapdb</option>: This parameter enables the
|
---|
| 154 | LDAPDB authentication backend. There is a circular dependency with this
|
---|
[4891ef3] | 155 | parameter. See <ulink url="&blfs-wiki;/cyrus-sasl"/> for a solution to
|
---|
| 156 | this problem.</para>
|
---|
[1f01e700] | 157 |
|
---|
[0afcfa88] | 158 | <para><command>install -v -m644 ...</command>: These commands
|
---|
| 159 | install documentation which is not installed by the
|
---|
[1cc0752] | 160 | <command>make install</command> command.</para>
|
---|
| 161 |
|
---|
[1f01e700] | 162 | <para><command>install -v -m700 -d /var/lib/sasl</command>: This directory
|
---|
[0afcfa88] | 163 | must exist when starting <command>saslauthd</command>. If you're not going
|
---|
[1cc0752] | 164 | to be running the daemon, you may omit the creation of this directory.</para>
|
---|
| 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
| 168 | <sect2 role="configuration">
|
---|
| 169 | <title>Configuring Cyrus SASL</title>
|
---|
| 170 |
|
---|
| 171 | <sect3 id="cyrus-sasl-config">
|
---|
| 172 | <title>Config Files</title>
|
---|
| 173 |
|
---|
[4891ef3] | 174 | <para><filename>/etc/saslauthd.conf</filename> (for
|
---|
| 175 | <command>saslauthd</command> LDAP configuration)
|
---|
[0afcfa88] | 176 | and <filename>/usr/lib/sasl2/Appname.conf</filename> (where "Appname"
|
---|
[1cc0752] | 177 | is the application defined name of the application)</para>
|
---|
| 178 |
|
---|
| 179 | <indexterm zone="cyrus-sasl cyrus-sasl-config">
|
---|
| 180 | <primary sortas="e-etc-saslauthd.conf">/etc/saslauthd.conf</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 |
|
---|
| 183 | </sect3>
|
---|
| 184 |
|
---|
| 185 | <sect3>
|
---|
| 186 | <title>Configuration Information</title>
|
---|
| 187 |
|
---|
[0afcfa88] | 188 | <para>See <ulink
|
---|
[d612b9f] | 189 | url="file:///usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/sysadmin.html"/>
|
---|
[0afcfa88] | 190 | for information on what to include in the application configuration files.
|
---|
| 191 | See <ulink
|
---|
[d612b9f] | 192 | url="file:///usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/LDAP_SASLAUTHD"/>
|
---|
[1f01e700] | 193 | for configuring <command>saslauthd</command> with
|
---|
| 194 | <application>OpenLDAP</application>.</para>
|
---|
[1cc0752] | 195 |
|
---|
| 196 | </sect3>
|
---|
| 197 |
|
---|
| 198 | <sect3 id="cyrus-sasl-init">
|
---|
| 199 | <title>Init Script</title>
|
---|
| 200 |
|
---|
[0afcfa88] | 201 | <para>If you need to run the <command>saslauthd</command> daemon at system
|
---|
[1cc0752] | 202 | startup, install the <filename>/etc/rc.d/init.d/cyrus-sasl</filename>
|
---|
[5254d12] | 203 | init script included in the <xref linkend="bootscripts"/>
|
---|
[1cc0752] | 204 | package.</para>
|
---|
| 205 |
|
---|
| 206 | <indexterm zone="cyrus-sasl cyrus-sasl-init">
|
---|
| 207 | <primary sortas="f-cyrus-sasl-init">cyrus-sasl</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 |
|
---|
| 210 | <screen role="root"><userinput>make install-cyrus-sasl</userinput></screen>
|
---|
| 211 |
|
---|
| 212 | <note>
|
---|
[0afcfa88] | 213 | <para>You'll need to modify the init script and replace the
|
---|
[3597eb6] | 214 | <option><replaceable><authmech></replaceable></option> parameter
|
---|
[0afcfa88] | 215 | to the <option>-a</option> switch with your desired authentication
|
---|
[1cc0752] | 216 | mechanism.</para>
|
---|
| 217 | </note>
|
---|
| 218 |
|
---|
| 219 | </sect3>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
| 222 |
|
---|
| 223 | <sect2 role="content">
|
---|
| 224 | <title>Contents</title>
|
---|
| 225 |
|
---|
| 226 | <segmentedlist>
|
---|
| 227 | <segtitle>Installed Programs</segtitle>
|
---|
| 228 | <segtitle>Installed Libraries</segtitle>
|
---|
| 229 | <segtitle>Installed Directories</segtitle>
|
---|
| 230 |
|
---|
| 231 | <seglistitem>
|
---|
| 232 | <seg>saslauthd, sasldblistusers2, and saslpasswd2</seg>
|
---|
[1f01e700] | 233 | <seg>libjavasasl.so, libsasl2.so, and numerous SASL plugins and
|
---|
| 234 | Java classes</seg>
|
---|
| 235 | <seg>/usr/include/sasl, /usr/lib/java/classes/sasl, /usr/lib/sasl2,
|
---|
[1cc0752] | 236 | /usr/share/doc/cyrus-sasl-&cyrus-sasl-version;, and /var/lib/sasl</seg>
|
---|
| 237 | </seglistitem>
|
---|
| 238 | </segmentedlist>
|
---|
| 239 |
|
---|
| 240 | <variablelist>
|
---|
| 241 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 242 | <?dbfo list-presentation="list"?>
|
---|
| 243 | <?dbhtml list-presentation="table"?>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="saslauthd">
|
---|
| 246 | <term><command>saslauthd</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>is the SASL authentication server.</para>
|
---|
| 249 | <indexterm zone="cyrus-sasl saslauthd">
|
---|
| 250 | <primary sortas="b-saslauthd">saslauthd</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="sasldblistusers2">
|
---|
| 256 | <term><command>sasldblistusers2</command></term>
|
---|
| 257 | <listitem>
|
---|
[4891ef3] | 258 | <para>is used to list the users in the SASL password database
|
---|
| 259 | <filename>sasldb2</filename>.</para>
|
---|
[1cc0752] | 260 | <indexterm zone="cyrus-sasl sasldblistusers2">
|
---|
| 261 | <primary sortas="b-sasldblistusers2">sasldblistusers2</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="saslpasswd2">
|
---|
| 267 | <term><command>saslpasswd2</command></term>
|
---|
| 268 | <listitem>
|
---|
[0afcfa88] | 269 | <para>is used to set and delete a user's SASL password and
|
---|
[4891ef3] | 270 | mechanism specific secrets in the SASL password database
|
---|
| 271 | <filename>sasldb2</filename>.</para>
|
---|
[1cc0752] | 272 | <indexterm zone="cyrus-sasl saslpasswd2">
|
---|
| 273 | <primary sortas="b-saslpasswd2">saslpasswd2</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="libsasl2">
|
---|
| 279 | <term><filename class='libraryfile'>libsasl2.so</filename></term>
|
---|
| 280 | <listitem>
|
---|
[0afcfa88] | 281 | <para>is a general purpose authentication library for server and
|
---|
[1cc0752] | 282 | client applications.</para>
|
---|
| 283 | <indexterm zone="cyrus-sasl libsasl2">
|
---|
| 284 | <primary sortas="c-libsasl2">libsasl2.so</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | </variablelist>
|
---|
| 290 |
|
---|
| 291 | </sect2>
|
---|
| 292 |
|
---|
| 293 | </sect1>
|
---|