Codebase list cyrus-sasl2 / debian/2.1.27_101-g0780600+dfsg-2 debian / doc / libsasl.5.xml
debian/2.1.27_101-g0780600+dfsg-2

Tree @debian/2.1.27_101-g0780600+dfsg-2 (Download .tar.gz)

libsasl.5.xml @debian/2.1.27_101-g0780600+dfsg-2raw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<refentry>
  <refmeta>
    <refentrytitle>libsasl</refentrytitle>

    <manvolnum>5</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>libsasl</refname>

    <refpurpose>authentication library</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <para>Cyrus SASL library handling communication between an application and
    the Cyrus SASL authentication framework.</para>
  </refsynopsisdiv>

  <refsection>
    <title>Description</title>

    <para>This document describes generic configuration options for the Cyrus
    SASL authentication library <systemitem
    class="library">libsasl</systemitem>.</para>

    <para>The library handles communication between an application and the
    Cyrus SASL authentication framework. Both exchange information before
    <systemitem class="library">libsasl</systemitem> can start offering
    authentication services for the application.</para>

    <para>The application, among other data, sends the
    <parameter>service_name</parameter>. The service name is the services name
    as specified by IANA. SMTP servers, for example, send
    <option>smtp</option> as <parameter>service_name</parameter>. This
    information is handed over by <systemitem
    class="library">libsasl</systemitem> e.g. when Kerberos or PAM
    authentication takes place.</para>

    <para>Configuration options in general are read either from a file or
    passed by the application using <systemitem
    class="library">libsasl</systemitem> during library initialization.</para>

    <refsection>
      <title>File-Based configuration</title>

      <para>When an application (server) starts, it initializes the
      <systemitem class="library">libsasl</systemitem> library. The
      application passes <parameter>app_name</parameter> (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 <option>sample</option> as
      <parameter>app_name</parameter>. Using this value the SASL library will
      search the configuration directories for a file named
      <filename>sample.conf</filename> and read configuration options from
      it.</para>

      <note>
        <para>Consult the applications manual to determine what
        <parameter>app_name</parameter> it sends to the Cyrus SASL
        library.</para>
      </note>
    </refsection>

    <refsection>
      <title>Application-Based Configuration</title>

      <para>Configuration options for <systemitem
      class="library">libsasl</systemitem> are written down together with
      application specific options in the applications configuration file. The
      application reads them and passes them over to <systemitem
      class="library">libsasl</systemitem> when it loads the library.</para>

      <note>
        <para>An example for application-based configuration is the Cyrus IMAP
        server <systemitem class="daemon">imapd</systemitem>. SASL
        configuration is written to <filename>imapd.conf</filename> and passed
        to the SASL library when the <systemitem
        class="daemon">imapd</systemitem> server starts.</para>
      </note>
    </refsection>
  </refsection>

  <refsection>
    <title>Configuration Syntax</title>

    <para>The general format of Cyrus SASL configuration file is as
    follows:</para>

    <variablelist>
      <varlistentry>
        <term>Configuration options</term>

        <listitem>
          <para>Configuration options are written each on a single physical
          line. Parameter and value must be separated by a colon and a single
          whitespace:</para>

          <programlisting>parameter: value</programlisting>

          <important>
            <para>There must be no trailing whitespace after the value or
            Cyrus SASL will fail to apply the value appropriately!</para>
          </important>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Comments, Emtpy lines and whitespace-only lines</term>

        <listitem>
          <para>Empty lines and whitespace-only lines are ignored, as are
          lines whose first non-whitespace character is a
          <quote>#</quote>.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Options</title>

    <para>There are generic options and options specific to the password
    verification service or auxiliary property plugin choosen by the
    administrator. Such specific options are documented in manuals listed in
    <xref linkend="seealso" />.</para>

    <para>The following configuration parameters are generic configuration
    options:</para>

    <variablelist>
      <varlistentry>
        <term><parameter>authdaemond_path</parameter> (default:
        <option>/dev/null</option>)</term>

        <listitem>
          <para>Path to Courier MTA authdaemond's unix socket. Only applicable
          when <parameter>pwcheck_method</parameter> is set to
          <option>authdaemond</option>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>auto_transition</parameter>: (default:
        <option>no</option>)</term>

        <listitem>
          <para>Automatically transition users to other mechanisms when they
          do a successful plaintext authentication and if an auxprop plugin is
          used.</para>

          <important>
            <para>This option does not apply to the <citerefentry>
                <refentrytitle>ldapdb</refentrytitle>

                <manvolnum>5</manvolnum>
              </citerefentry> plugin. It is a read-only plugin.</para>
          </important>

          <variablelist>
            <varlistentry>
              <term><option>no</option></term>

              <listitem>
                <para>Do not transition users to other mechanisms.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>noplain</option></term>

              <listitem>
                <para>Transition users to other mechanisms, but write
                non-plaintext secrets only.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>yes</option></term>

              <listitem>
                <para>Transition users to other mechanisms.</para>
              </listitem>
            </varlistentry>
          </variablelist>

          <note>
            <para>The only mechanisms (as currently implemented) which don't
            use plaintext secrets are OTP and SRP.</para>
          </note>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>auxprop_plugin</parameter>: (default: empty)</term>

        <listitem>
          <para>A whitespace-separated list of one or more auxiliary plugins
          used if the <parameter>pwcheck_method</parameter> parameter
          specifies <option>auxprop</option> as an option. Plugins will be
          queried in list order. If no plugin is specified, all available
          plugins will be queried.</para>

          <variablelist>
            <varlistentry>
              <term><option>ldapdb</option></term>

              <listitem>
                <para>Specify <option>ldapdb</option> to use the Cyrus SASL
                <citerefentry>
                    <refentrytitle>ldapdb</refentrytitle>

                    <manvolnum>5</manvolnum>
                  </citerefentry> plugin.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>sasldb</option></term>

              <listitem>
                <para>Specify <option>sasldb</option> to use the Cyrus SASL
                <citerefentry>
                    <refentrytitle>sasldb</refentrytitle>

                    <manvolnum>5</manvolnum>
                  </citerefentry> plugin.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>sql</option></term>

              <listitem>
                <para>Specify <option>sql</option> to use the Cyrus SASL
                <citerefentry>
                    <refentrytitle>sql</refentrytitle>

                    <manvolnum>5</manvolnum>
                  </citerefentry> plugin.</para>
              </listitem>
            </varlistentry>
          </variablelist>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>log_level</parameter>: (default:
        <option>1</option>)</term>

        <listitem>
          <para>Specifies a numeric log level. Available log levels
          are:</para>

          <variablelist>
            <varlistentry>
              <term><option>0</option></term>

              <listitem>
                <para>Don't log anything</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>1</option></term>

              <listitem>
                <para>Log unusual errors</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>2</option></term>

              <listitem>
                <para>Log all authentication failures</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>3</option></term>

              <listitem>
                <para>Log non-fatal warnings</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>4</option></term>

              <listitem>
                <para>More verbose than 3</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>5</option></term>

              <listitem>
                <para>More verbose than 4</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>6</option></term>

              <listitem>
                <para>Traces of internal protocols</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>7</option></term>

              <listitem>
                <para>Traces of internal protocols, including passwords</para>
              </listitem>
            </varlistentry>
          </variablelist>

          <important>
            <para>Cyrus SASL sends log messages to the application that runs
            it. The application decides if it forwards such messages to the
            <citerefentry>
                <refentrytitle>sysklogd</refentrytitle>

                <manvolnum>8</manvolnum>
              </citerefentry> service, to which
            <parameter>facility</parameter> they are sent and which
            <parameter>priority</parameter> is given to the message.</para>
          </important>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>mech_list</parameter>: (default: empty)</term>

        <listitem>
          <para>The optional <parameter>mech_list</parameter> parameter
          specifies a whitespace-separated list of one or more mechanisms
          allowed for authentication.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>pwcheck_method</parameter>: (default:
        <option>auxprop</option>)</term>

        <listitem>
          <para>A whitespace-separated list of one or more mechanisms. Cyrus
          SASL provides the following mechanisms:</para>

          <variablelist>
            <varlistentry>
              <term><option>authdaemond</option></term>

              <listitem>
                <para>Configures Cyrus SASL to contact the Courier MTA
                <citerefentry>
                    <refentrytitle>authdaemond</refentrytitle>

                    <manvolnum>8</manvolnum>
                  </citerefentry> password verification service for password
                verification.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>alwaystrue</option></term>

              <listitem>
                <para>TODO</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>auxprop</option></term>

              <listitem>
                <para>Cyrus SASL will use its own plugin infrastructure to
                verify passwords. The
                <parameter><parameter>auxprop_plugin</parameter></parameter>
                parameter controls which plugins will be used.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>pwcheck</option></term>

              <listitem>
                <para>Verify passwords using the Cyrus SASL <citerefentry>
                    <refentrytitle>pwcheck</refentrytitle>

                    <manvolnum>8</manvolnum>
                  </citerefentry> password verification service. The pwcheck
                daemon is considered deprecated and should not be used
                anymore. Use the saslauthd password verification service
                instead.</para>
              </listitem>
            </varlistentry>

            <varlistentry>
              <term><option>saslauthd</option></term>

              <listitem>
                <para>Verify passwords using the Cyrus SASL <citerefentry>
                    <refentrytitle>saslauthd</refentrytitle>

                    <manvolnum>8</manvolnum>
                  </citerefentry> password verification service.</para>
              </listitem>
            </varlistentry>
          </variablelist>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><parameter>saslauthd_path</parameter>: (default: empty)</term>

        <listitem>
          <para>Path to <citerefentry>
              <refentrytitle>saslauthd</refentrytitle>

              <manvolnum>8</manvolnum>
            </citerefentry> run directory (including the
          <filename>/mux</filename> named pipe)</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection id="seealso">
    <title>See also</title>

    <para><citerefentry>
        <refentrytitle>authdaemond</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>ldapdb</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>libsasl</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>saslauthd</refentrytitle>

        <manvolnum>8</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>saslauthd.conf</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>saslpasswd2</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>sasldblistusers2</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>sasldb</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry>, <citerefentry>
        <refentrytitle>sql</refentrytitle>

        <manvolnum>5</manvolnum>
      </citerefentry></para>
  </refsection>

  <refsection>
    <title>Readme files</title>

    <para><filename>README.Debian</filename></para>
  </refsection>

  <refsection>
    <title>Author</title>

    <para>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
    <filename>options.html</filename>.</para>

    <para><address>Patrick Ben Koetter
<email>p@state-of-mind.de</email></address></para>
  </refsection>
</refentry>