source: postlfs/security/cyrus-sasl.xml@ 9b8ff698

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 9b8ff698 was 9b8ff698, checked in by Douglas R. Reno <renodr@…>, 21 months ago

Fix building hdparm-9.64 with glibc-2.36
Tags up to that point

  • Property mode set to 100644
File size: 14.5 KB
RevLine 
[da4aff6]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[da4aff6]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[99c5223]7 <!ENTITY cyrus-sasl-download-http "https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-&cyrus-sasl-version;/cyrus-sasl-&cyrus-sasl-version;.tar.gz">
[2c7f15e]8 <!ENTITY cyrus-sasl-download-ftp " ">
[4483a9a]9 <!ENTITY cyrus-sasl-md5sum "6f228a692516f5318a64505b46966cfa">
[ebf10d3e]10 <!ENTITY cyrus-sasl-size "3.9 MB">
[4483a9a]11 <!ENTITY cyrus-sasl-buildsize "28 MB">
12 <!ENTITY cyrus-sasl-time "0.2 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 <date>$Date$</date>
20 </sect1info>
21
22 <title>Cyrus SASL-&cyrus-sasl-version;</title>
23
24 <indexterm zone="cyrus-sasl">
25 <primary sortas="a-Cyrus-SASL">Cyrus SASL</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Cyrus SASL</title>
30
[faf325d]31 <para>
32 The <application>Cyrus SASL</application> package contains a Simple
[4483a9a]33 Authentication and Security Layer implementation, a method for adding
34 authentication support to connection-based protocols. To use SASL, a
35 protocol includes a command for identifying and authenticating a user to
36 a server and for optionally negotiating protection of subsequent protocol
37 interactions. If its use is negotiated, a security layer is inserted
38 between the protocol and the connection.
[faf325d]39 </para>
[1cc0752]40
[9b8ff698]41 &lfs112_checked;
[fae66a0]42
[7ffeb4bd]43 <!-- To test this package at freeze, run the following command:
44 testsaslauthd -u <current user> -p <password>
45 after saslauthd is started. -->
[1cc0752]46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
[faf325d]49 <para>
50 Download (HTTP): <ulink url="&cyrus-sasl-download-http;"/>
51 </para>
[1cc0752]52 </listitem>
53 <listitem>
[faf325d]54 <para>
55 Download (FTP): <ulink url="&cyrus-sasl-download-ftp;"/>
56 </para>
[1cc0752]57 </listitem>
58 <listitem>
[faf325d]59 <para>
60 Download MD5 sum: &cyrus-sasl-md5sum;
61 </para>
[1cc0752]62 </listitem>
63 <listitem>
[faf325d]64 <para>
65 Download size: &cyrus-sasl-size;
66 </para>
[1cc0752]67 </listitem>
68 <listitem>
[faf325d]69 <para>
70 Estimated disk space required: &cyrus-sasl-buildsize;
71 </para>
[1cc0752]72 </listitem>
73 <listitem>
[faf325d]74 <para>
75 Estimated build time: &cyrus-sasl-time;
76 </para>
[1cc0752]77 </listitem>
78 </itemizedlist>
[d9914a3]79
[4483a9a]80 <!-- Not needed anymore
[fae66a0]81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
82 <itemizedlist spacing="compact">
83 <listitem>
[faf325d]84 <para>
85 Required patch:
[d9914a3]86 <ulink url="&patch-root;/cyrus-sasl-&cyrus-sasl-version;-doc_fixes-1.patch"/>
87 </para>
[fae66a0]88 </listitem>
[4483a9a]89 <!- -<listitem>
[a4f37269]90 <para>
91 Required patch:
92 <ulink url="&patch-root;/cyrus-sasl-&cyrus-sasl-version;-openssl-1.1.0-1.patch"/>
93 </para>
[4483a9a]94 </listitem>- ->
[fae66a0]95 </itemizedlist>
[4483a9a]96 -->
[d9914a3]97
[ebf10d3e]98 <bridgehead renderas="sect3">Cyrus SASL Dependencies</bridgehead>
99
[fae66a0]100 <bridgehead renderas="sect4">Recommended</bridgehead>
[faf325d]101 <para role="recommended">
102 <xref linkend="db"/>
103 </para>
[fae66a0]104
[1cc0752]105 <bridgehead renderas="sect4">Optional</bridgehead>
[faf325d]106 <para role="optional">
107 <xref linkend="linux-pam"/>,
108 <xref linkend="mitkrb"/>,
[5e0662d]109 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
[fb1f32b]110 <!--<xref linkend="openjdk"/>, Removed in 2.1.28 -->
[faf325d]111 <xref linkend="openldap"/>,
112 <xref linkend="postgresql"/>,
113 <xref linkend="sqlite"/>,
[ba718791]114 <ulink url="https://stuff.mit.edu/afs/net.mit.edu/project/attic/krb4/">krb4</ulink>,
115 <ulink url="http://dmalloc.com/">Dmalloc</ulink>,
116 <ulink url="https://metacpan.org/pod/Pod::POM::View::Restructured">Pod::POM::View::Restructured</ulink>,
117 and <ulink url="https://pypi.org/project/Sphinx">Sphinx</ulink>
[faf325d]118 </para>
[1cc0752]119
[3597eb6]120 <para condition="html" role="usernotes">User Notes:
[faf325d]121 <ulink url="&blfs-wiki;/cyrus-sasl"/>
122 </para>
[1cc0752]123 </sect2>
124
125 <sect2 role="installation">
126 <title>Installation of Cyrus SASL</title>
127
[b412c90f]128 <note>
129 <para>
130 This package does not support parallel build.
131 </para>
132 </note>
133
[d9914a3]134 <!-- Without this patch, having Sphinx and/or doctools (doctools not tested)
135 on the system causes an FTBFS when man pages are generated. The Sphinx
136 and Docutils API has changed significantly between Sphinx-{1,2} and
[4483a9a]137 Sphinx-3.0.
[d9914a3]138
139 <para>
140 First, fix a build failure if Sphinx or
141 <xref role="nodep" linkend="docutils"/> is installed on the system:
142 </para>
143
144<screen><userinput remap="pre">patch -Np1 -i ../cyrus-sasl-2.1.27-doc_fixes-1.patch</userinput></screen>
[4483a9a]145 -->
[d9914a3]146
[faf325d]147 <para>
148 Install <application>Cyrus SASL</application> by
149 running the following commands:
150 </para>
[1cc0752]151
[ebf10d3e]152<screen><userinput>./configure --prefix=/usr \
[15fc6d6]153 --sysconfdir=/etc \
154 --enable-auth-sasldb \
[a8c9494]155 --with-dbpath=/var/lib/sasl/sasldb2 \
[dcb7f66]156 --with-sphinx-build=no \
[643ea8d7]157 --with-saslauthd=/var/run/saslauthd &amp;&amp;
[b412c90f]158make -j1</userinput></screen>
[305e60de]159
[faf325d]160 <para>
161 This package does not come with a test suite. If you are planning
[ebf10d3e]162 on using the GSSAPI authentication mechanism, test
[faf325d]163 it after installing the package using the sample server and client
164 programs which were built in the preceding step. Instructions for
165 performing the tests can be found at
166 <ulink url="&hints-root;/downloads/files/cyrus-sasl.txt"/>.
167 </para>
[1f01e700]168
[faf325d]169 <para>
170 Now, as the <systemitem class="username">root</systemitem> user:
171 </para>
[305e60de]172
[1cc0752]173<screen role="root"><userinput>make install &amp;&amp;
[ebf10d3e]174install -v -dm755 /usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/html &amp;&amp;
[b0c1bf3]175install -v -m644 saslauthd/LDAP_SASLAUTHD /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; &amp;&amp;
[07ea289]176install -v -m644 doc/legacy/*.html /usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/html &amp;&amp;
[faf325d]177install -v -dm700 /var/lib/sasl</userinput></screen>
[da4aff6]178
[1cc0752]179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
[faf325d]184 <para>
185 <parameter>--with-dbpath=/var/lib/sasl/sasldb2</parameter>: This
186 switch forces the <command>sasldb</command> database to be created
187 in <filename class="directory">/var/lib/sasl</filename> instead of
188 <filename class="directory">/etc</filename>.
189 </para>
190
191 <para>
192 <parameter>--with-saslauthd=/var/run/saslauthd</parameter>: This
193 switch forces <command>saslauthd</command> to use the FHS compliant
194 directory <filename class="directory">/var/run/saslauthd</filename>
195 for variable run-time data.
196 </para>
197
[a5ce76f]198 <para>
199 <parameter>--enable-auth-sasldb</parameter>: This switch enables
200 SASLDB authentication backend.
201 </para>
202
[faf325d]203 <para>
[f859e6fd]204 <option>--with-dblib=gdbm</option>: This switch forces
[faf325d]205 <application>GDBM</application> to be used instead of
206 <application>Berkeley DB</application>.
207 </para>
208
209 <para>
210 <option>--with-ldap</option>: This switch enables the
211 <application>OpenLDAP</application> support.
212 </para>
213
214 <para>
215 <option>--enable-ldapdb</option>: This switch enables the
[4483a9a]216 LDAPDB authentication backend. <!--There is a circular dependency with this
[faf325d]217 parameter. See <ulink url="&blfs-wiki;/cyrus-sasl"/> for a solution to
[4483a9a]218 this problem.-->
[faf325d]219 </para>
220
[fb1f32b]221<!-- Removed in 2.1.28
[faf325d]222 <para>
[fb1f32b]223 <option>- -enable-java</option>: This switch enables compiling of the
[faf325d]224 <application>Java</application> support libraries.
225 </para>
[fb1f32b]226-->
[faf325d]227
228 <para>
229 <option>--enable-login</option>: This option enables unsupported
230 LOGIN authentication.
231 </para>
232
233 <para>
234 <option>--enable-ntlm</option>: This option enables unsupported
235 NTLM authentication.
236 </para>
237
238 <para>
239 <command>install -v -m644 ...</command>: These commands
240 install documentation which is not installed by the
241 <command>make install</command> command.
242 </para>
243
244 <para>
245 <command>install -v -m700 -d /var/lib/sasl</command>: This directory
246 must exist when starting <command>saslauthd</command> or using the
247 sasldb plugin. If you're not going to be running the daemon or
248 using the plugins, you may omit the creation of this directory.
249 </para>
[1cc0752]250
251 </sect2>
252
253 <sect2 role="configuration">
254 <title>Configuring Cyrus SASL</title>
255
256 <sect3 id="cyrus-sasl-config">
257 <title>Config Files</title>
258
[faf325d]259 <para>
260 <filename>/etc/saslauthd.conf</filename>
261 (for <command>saslauthd</command> LDAP configuration) and
262 <filename>/etc/sasl2/Appname.conf</filename>
263 (where "Appname" is the application defined name of the application)
264 </para>
[1cc0752]265
266 <indexterm zone="cyrus-sasl cyrus-sasl-config">
267 <primary sortas="e-etc-saslauthd.conf">/etc/saslauthd.conf</primary>
268 </indexterm>
269
270 </sect3>
271
272 <sect3>
273 <title>Configuration Information</title>
274
[faf325d]275 <para>
276 See
[7ffeb4bd]277 <ulink url="https://www.cyrusimap.org/sasl/sasl/sysadmin.html"/>
[faf325d]278 for information on what to include in the application configuration files.
279 </para>
280
281 <para>
282 See
[0d381254]283 <ulink url="file:///usr/share/doc/cyrus-sasl-&cyrus-sasl-version;/LDAP_SASLAUTHD"/>
[faf325d]284 for configuring <command>saslauthd</command> with
285 <application>OpenLDAP</application>.
286 </para>
287
288 <para>
289 See
[7ffeb4bd]290 <ulink url="https://www.cyrusimap.org/sasl/sasl/gssapi.html#gssapi"/>
[faf325d]291 for configuring <command>saslauthd</command> with <application>Kerberos</application>.
[fae66a0]292 </para>
[1cc0752]293
294 </sect3>
295
[e445195]296 <sect3 id="cyrus-sasl-init">
[f586237]297 <title><phrase revision="sysv">Init Script</phrase>
298 <phrase revision="systemd">Systemd Unit</phrase></title>
[e445195]299
[f586237]300 <para revision="sysv">
[e445195]301 If you need to run the <command>saslauthd</command> daemon at system
302 startup, install the <filename>/etc/rc.d/init.d/saslauthd</filename>
[f586237]303 init script included in the
304 <xref linkend="bootscripts"/> package using the following command:
305 </para>
306
307 <para revision="systemd">
308 If you need to run the <command>saslauthd</command> daemon at system
309 startup, install the <filename>saslauthd.service</filename> unit
310 included in the <xref linkend="systemd-units"/> package using the
311 following command:
[e445195]312 </para>
313
314 <indexterm zone="cyrus-sasl cyrus-sasl-init">
315 <primary sortas="f-saslauthd">saslauthd</primary>
316 </indexterm>
317
318<screen role="root"><userinput>make install-saslauthd</userinput></screen>
319
320 <note>
321 <para>
[f586237]322 You'll need to modify
323 <filename revision="sysv">/etc/sysconfig/saslauthd</filename>
324 <filename revision="systemd">/etc/default/saslauthd</filename>
325 and modify the
326 <option revision="sysv">AUTHMECH</option>
327 <option revision="systemd">MECHANISM</option>
328 parameter with your desired authentication mechanism.
[6fef3c9]329 <phrase revision="systemd">The default authentication
330 mechanism is "shadow".</phrase>
[e445195]331 </para>
332 </note>
333
334 </sect3>
[1cc0752]335
336 </sect2>
337
338 <sect2 role="content">
339 <title>Contents</title>
340
341 <segmentedlist>
342 <segtitle>Installed Programs</segtitle>
[faf325d]343 <segtitle>Installed Library</segtitle>
[1cc0752]344 <segtitle>Installed Directories</segtitle>
345
346 <seglistitem>
[faf325d]347 <seg>
348 pluginviewer, saslauthd, sasldblistusers2, saslpasswd2 and
349 testsaslauthd
350 </seg>
351 <seg>
352 libsasl2.so
353 </seg>
354 <seg>
355 /usr/include/sasl,
356 /usr/lib/sasl2,
357 /usr/share/doc/cyrus-sasl-&cyrus-sasl-version; and
358 /var/lib/sasl
359 </seg>
[1cc0752]360 </seglistitem>
361 </segmentedlist>
362
363 <variablelist>
364 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
365 <?dbfo list-presentation="list"?>
366 <?dbhtml list-presentation="table"?>
367
[fae66a0]368 <varlistentry id="pluginviewer">
369 <term><command>pluginviewer</command></term>
370 <listitem>
[faf325d]371 <para>
[4c24eb0a]372 is used to list loadable SASL plugins and their properties
[faf325d]373 </para>
[fae66a0]374 <indexterm zone="cyrus-sasl pluginviewer">
375 <primary sortas="b-pluginviewer">pluginviewer</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
[1cc0752]380 <varlistentry id="saslauthd">
381 <term><command>saslauthd</command></term>
382 <listitem>
[faf325d]383 <para>
[4c24eb0a]384 is the SASL authentication server
[faf325d]385 </para>
[1cc0752]386 <indexterm zone="cyrus-sasl saslauthd">
387 <primary sortas="b-saslauthd">saslauthd</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="sasldblistusers2">
393 <term><command>sasldblistusers2</command></term>
394 <listitem>
[faf325d]395 <para>
396 is used to list the users in the SASL password database
[4c24eb0a]397 <filename>sasldb2</filename>
[faf325d]398 </para>
[1cc0752]399 <indexterm zone="cyrus-sasl sasldblistusers2">
400 <primary sortas="b-sasldblistusers2">sasldblistusers2</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="saslpasswd2">
406 <term><command>saslpasswd2</command></term>
407 <listitem>
[faf325d]408 <para>
409 is used to set and delete a user's SASL password and
410 mechanism specific secrets in the SASL password
[4c24eb0a]411 database <filename>sasldb2</filename>
[faf325d]412 </para>
[1cc0752]413 <indexterm zone="cyrus-sasl saslpasswd2">
414 <primary sortas="b-saslpasswd2">saslpasswd2</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
[fae66a0]419 <varlistentry id="testsaslauthd">
420 <term><command>testsaslauthd</command></term>
421 <listitem>
[faf325d]422 <para>
[4c24eb0a]423 is a test utility for the SASL authentication server
[faf325d]424 </para>
[fae66a0]425 <indexterm zone="cyrus-sasl testsaslauthd">
426 <primary sortas="b-testsaslauthd">testsaslauthd</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
[1cc0752]431 <varlistentry id="libsasl2">
[faf325d]432 <term><filename class="libraryfile">libsasl2.so</filename></term>
[1cc0752]433 <listitem>
[faf325d]434 <para>
435 is a general purpose authentication library for server
[4c24eb0a]436 and client applications
[faf325d]437 </para>
[1cc0752]438 <indexterm zone="cyrus-sasl libsasl2">
439 <primary sortas="c-libsasl2">libsasl2.so</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 </variablelist>
445
446 </sect2>
447
448</sect1>
Note: See TracBrowser for help on using the repository browser.