Codebase list cyrus-sasl2 / debian/2.1.27_rc8-1 debian / doc / saslauthd.conf.5
debian/2.1.27_rc8-1

Tree @debian/2.1.27_rc8-1 (Download .tar.gz)

saslauthd.conf.5 @debian/2.1.27_rc8-1raw · 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
.\"     Title: saslauthd.conf
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
.\"      Date: 12/14/2008
.\"    Manual: 
.\"    Source: 
.\"
.TH "SASLAUTHD\&.CONF" "5" "12/14/2008" "" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
saslauthd.conf \- saslauthd LDAP configuration file
.SH "SYNOPSIS"
.HP 10
\fBsaslauthd\fR [\-a\ ldap]
.HP 10
\fBsaslauthd\fR [\-a\ ldap] [\-O\ \fI/etc/saslauthd\&.conf\fR]
.SH "DESCRIPTION"
.PP
This document describes LDAP configuration options for the Cyrus SASL password verification service
\fBsaslauthd\fR\&.
.PP
By default
\fBsaslauthd\fR
searches for LDAP configuration options in
\fI/usr/local/etc/saslauthd\&.conf\fR\&. This location can be overridden if the additional command line option
\fB\-O\fR
specifies an alternative path to the configuration file\&.
.SH "SYNTAX"
.PP
Do not use quotes (\e"\e\') in the parameter values\&.
.SH "OPTIONS"
.PP
The following are available LDAP parameters\&. The defaults are probably adequate for most installations\&. Only
\fI\fIldap_servers\fR\fR
may need to be specified\&.
.PP
\fIldap_auth_method\fR (default: \fBbind\fR|\fBfastbind\fR)
.RS 4
The bind method uses the LDAP bind facility to verify the password\&. The bind method is not available when
\fIldap_use_sasl\fR
is turned on\&. In that case saslauthd will use fastbind\&.
.PP
\fBbind\fR
.RS 4
\fBbind\fR
is the default auth method\&. When ldap_use_sasl is enabled, \'fastbind\' is the default\&.
.RE
.PP
\fBcustom\fR
.RS 4
The
\fBcustom\fR
method uses
\fIuserPassword\fR
attribute to verify the password\&. Supported hashes:
crypt,
md5, smd5,
sha
and
ssha\&.
Cleartext
is supported as well\&.
.RE
.PP
\fBfastbind\fR
.RS 4
The
\fBfastbind\fR
method \- when
\fIldap_use_sasl\fR
is
\fBno\fR
\- does away with the search and an extra anonymous bind in auth_bind, but makes two assumptions:
.sp
.RS 4
\h'-04' 1.\h'+02'Expanding the ldap_filter expression gives the user\'s fully\-qualified DN
.RE
.sp
.RS 4
\h'-04' 2.\h'+02'There is no cost to staying bound as a named user
.RE
.RE
.RE
.PP
\fIldap_bind_dn\fR (default: empty)
.RS 4
Specify
DN
(distinguished name) to bind to the LDAP directory\&. Do not specify this parameter for the anonymous bind\&.
.RE
.PP
\fIldap_bind_pw\fR (default: empty)
.RS 4
An alias for
\fIldap_password\fR\&.
.RE
.PP
\fIldap_default_domain\fR (default: empty)
.RS 4
An alias for
\fIldap_default_realm\fR\&.
.RE
.PP
\fIldap_default_realm\fR (default: empty)
.RS 4
The default realm is assigned to the
\fB%r\fR
token when realm is not available\&. See
\fIldap_filter\fR
for more\&.
.RE
.PP
\fIldap_deref\fR (default: empty)
.RS 4
Specify how aliases dereferencing is handled during search\&. Should be one of
\fBnever\fR,
\fBalways\fR,
\fBsearch\fR, or
\fBfind\fR
to specify that aliases are never dereferenced, always dereferenced, dereferenced when searching, or dereferenced only when locating the base object for the search\&.
.RE
.PP
\fIldap_filter\fR (default: \fBuid=%u\fR)
.RS 4
Specify a filter\&. The following tokens can be used in the filter string:
.PP
\fB%%\fR
.RS 4
This is replaced by a literal \(cq%\(cq character\&.
.RE
.PP
\fB%u\fR
.RS 4
\fB%u\fR
is replaced by the complete user string\&.
.RE
.PP
\fB%U\fR
.RS 4
If the string is an address (\fB%u\fR),
\fB%U\fR
will be replaced by the local part of that address\&.
.RE
.PP
\fB%d\fR
.RS 4
If the string is an address (\fB%u\fR),
\fB%d\fR
will be replaced by the domain part of that address\&. Otherwise it will be the same as
\fB%r\fR\&.
.RE
.PP
\fB%1\-9\fR
.RS 4
If the input key is
user@mail\&.example\&.com, then
\fB%1\fR
is
com,
\fB%2\fR
is
example
and
\fB%3\fR
is
mail\&.
.RE
.PP
\fB%s\fR
.RS 4
\fB%s\fR
is replaced by the complete service string\&.
.RE
.PP
\fB%r\fR
.RS 4
\fB%r\fR
is replaced by the complete realm string\&.
.RE
.PP
\fB%D\fR
.RS 4
\fB%D\fR
is replaced by the complete user DN (available for group checks)
.RE
.sp
The
\fB%u\fR
token has to be used at minimum for the filter to be useful\&. If
\fIldap_auth_method\fR
is
\fBbind\fR, the filter will search for the
DN
(distinguished name) attribute\&. Otherwise, the search will look for the
\fIldap_password_attr\fR
attribute\&.
.RE
.PP
\fIldap_group_attr\fR (default: \fBuniqueMember\fR)
.RS 4
Specify what attribute to compare the user DN against in the group\&. If
\fIldap_group_dn\fR
is not specified, this parameter is ignored\&. If
\fIldap_group_match_method\fR
is not
\fBattr\fR, this parameter is ignored\&.
.RE
.PP
\fIldap_group_dn\fR (default: empty)
.RS 4
If specified, the user has to be part of the group in order to authenticate successfully\&. Tokens described in
\fIldap_filter\fR
can be used for substitution\&.
.RE
.PP
\fIldap_group_filter\fR (default: empty)
.RS 4
Specify a filter\&. If a filter match is found then the user is in the group\&. Tokens described in
\fIldap_filter\fR
can be used for for substitution\&. If
\fIldap_group_dn\fR
is not specified, this parameter is ignored\&. If
\fIldap_group_match_method\fR
is not filter, this parameter is ignored\&.
.RE
.PP
\fIldap_group_match_method\fR (default: \fBattr\fR)
.RS 4
If
\fBattr\fR
is used the group match method uses
\fIldap_group_attr\fR
and if
\fBfilter\fR
is used
\fIldap_group_search\fR
will be used as group match method\&. If
\fIldap_group_dn\fR
is not specified, this parameter is ignored\&.
.RE
.PP
\fIldap_group_search_base\fR (default: \fIldap_search_base\fR)
.RS 4
Specify a starting point for the group search: e\&.g\&.
dc=example,dc=com\&. Tokens described in
\fIldap_filter\fR
can be used for substitution\&.
.RE
.PP
\fIldap_group_scope\fR (default: sub)
.RS 4
Group search scope\&. Options are either
\fBsub\fR,
\fBone\fR
or
\fBbase\fR\&.
.RE
.PP
\fIldap_password\fR (default: empty)
.RS 4
Specify the password for
\fIldap_bind_dn\fR
or
\fIldap_id\fR
if
\fIldap_use_sasl\fR
is turned on\&. Do not specify this parameter for the anonymous bind\&.
.RE
.PP
\fIldap_password_attr\fR (default: \fBuserPassword\fR)
.RS 4
Specify what password attribute to use for password verification\&.
.RE
.PP
\fIldap_referrals\fR (default: \fBno\fR)
.RS 4
Specify whether or not the client should follow referrals\&.
.RE
.PP
\fIldap_restart\fR (default: \fByes\fR)
.RS 4
Specify whether or not LDAP I/O operations are automatically restarted if they abort prematurely\&.
.RE
.PP
\fIldap_id\fR (default: empty)
.RS 4
Specify the authentication ID for SASL bind\&.
.RE
.PP
\fIldap_authz_id\fR (default: empty)
.RS 4
Specify the proxy authorization ID for SASL bind\&.
.RE
.PP
\fIldap_mech\fR (default: empty)
.RS 4
Specify the authentication mechanism for SASL bind\&.
.RE
.PP
\fIldap_realm\fR (default: empty)
.RS 4
Specify the realm of authentication ID for SASL bind\&.
.RE
.PP
\fIldap_scope\fR (default: \fBsub\fR)
.RS 4
Search scope\&. Options are either
\fBsub\fR,
\fBone\fR
or
\fBbase\fR\&.
.RE
.PP
\fIldap_search_base\fR (default: empty)
.RS 4
Specify a starting point for the search: e\&.g\&.
dc=example,dc=com\&. Tokens described in
\fIldap_filter\fR
can be used for substitution\&.
.RE
.PP
\fIldap_servers\fR (default: \fBldap://localhost/\fR)
.RS 4
Specify one or more URI(s) referring to LDAP server(s), e\&.g\&.
ldaps://10\&.1\&.1\&.2:999/\&. Multiple servers must be separated by space\&.
.RE
.PP
\fIldap_start_tls\fR (default: \fBno\fR)
.RS 4
Use StartTLS extended operation\&. Do not use ldaps: ldap_servers when this option is turned on\&.
.RE
.PP
\fIldap_time_limit\fR (default: \fB5\fR)
.RS 4
Specify a number of seconds for a search request to complete\&.
.RE
.PP
\fIldap_timeout\fR (default: \fB5\fR)
.RS 4
Specify a number of seconds a search can take before timing out\&.
.RE
.PP
\fIldap_tls_check_peer\fR (default: \fBno\fR)
.RS 4
Require and verify server certificate\&. If this option is
\fByes\fR, you must specify
\fIldap_tls_cacert_file\fR
or
\fIldap_tls_cacert_dir\fR\&.
.RE
.PP
\fIldap_tls_cacert_file\fR (default: empty)
.RS 4
File containing CA (Certificate Authority) certificate(s)\&.
.RE
.PP
\fIldap_tls_cacert_dir\fR (default: empty)
.RS 4
Path to directory with CA (Certificate Authority) certificates\&.
.RE
.PP
\fIldap_tls_ciphers\fR (default: \fBDEFAULT\fR)
.RS 4
List of SSL/TLS ciphers to allow\&. The format of the string is described in
\fBciphers\fR(1)\&.
.RE
.PP
\fIldap_tls_cert\fR (default: empty)
.RS 4
File containing the client certificate\&.
.RE
.PP
\fIldap_tls_key\fR (default: empty)
.RS 4
File containing the private client key\&.
.RE
.PP
\fIldap_use_sasl\fR (default: \fBno\fR)
.RS 4
Use SASL bind instead of simple bind when connecting to the LDAP server\&.
.RE
.PP
\fIldap_version\fR (default: \fB3\fR)
.RS 4
Specify the LDAP protocol version \- either
\fB2\fR
or
\fB3\fR\&. If
\fIldap_start_tls\fR
and/or
\fIldap_use_sasl\fR
are enabled,
\fIldap_version\fR
will be automatically set to
\fB3\fR\&.
.RE
.SH "EXAMPLE"
.PP

.sp
.RS 4
.nf
.fi
.RE
.SH "SEE ALSO"
.PP
\fBauthdaemond\fR(5),
\fBldapdb\fR(5),
\fBlibsasl\fR(5),
\fBsaslauthd\fR(8),
\fBsaslauthd.conf\fR(5),
\fBsaslpasswd2\fR(5),
\fBsasldblistusers2\fR(5),
\fBsasldb\fR(5),
\fBsql\fR(5)
.SH "README FILES"
.PP
\fIREADME\&.Debian\fR
.SH "AUTHOR(S)"
.PP
This manual is based on notes in
\fILDAP_SASLAUTHD\fR
from Igor Brezac\&.
.PP
.RS 4
.nf
Igor Brezac
<Igor@ipass\&.net>
.fi
.RE
.PP
It was edited and revised for the Debian distribution because the original program does not have a manual page\&.
.PP
.RS 4
.nf
Patrick Ben Koetter
<p@state\-of\-mind\&.de>
.fi
.RE