]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
Add localSSF slapd.conf(5) directive to set SSF associated
[openldap] / doc / man / man5 / slapd.conf.5
1 .TH SLAPD.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2004 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .\" $OpenLDAP$
5 .SH NAME
6 slapd.conf \- configuration file for slapd, the stand-alone LDAP daemon
7 .SH SYNOPSIS
8 ETCDIR/slapd.conf
9 .SH DESCRIPTION
10 The file
11 .B ETCDIR/slapd.conf
12 contains configuration information for the
13 .BR slapd (8)
14 daemon.  This configuration file is also used by the
15 .BR slurpd (8)
16 replication daemon and by the SLAPD tools
17 .BR slapacl (8),
18 .BR slapadd (8),
19 .BR slapauth (8),
20 .BR slapcat (8),
21 .BR slapdn (8),
22 .BR slapindex (8),
23 and
24 .BR slaptest (8).
25 .LP
26 The
27 .B slapd.conf
28 file consists of a series of global configuration options that apply to
29 .B slapd
30 as a whole (including all backends), followed by zero or more database
31 backend definitions that contain information specific to a backend
32 instance.
33 .LP
34 The general format of
35 .B slapd.conf
36 is as follows:
37 .LP
38 .nf
39     # comment - these options apply to every database
40     <global configuration options>
41     # first database definition & configuration options
42     database <backend 1 type>
43     <configuration options specific to backend 1>
44     # subsequent database definitions & configuration options
45     ...
46 .fi
47 .LP
48 As many backend-specific sections as desired may be included.  Global
49 options can be overridden in a backend (for options that appear more
50 than once, the last appearance in the
51 .B slapd.conf
52 file is used).
53 .LP
54 If a line begins with white space, it is considered a continuation
55 of the previous line.  Blank lines and comment lines beginning with
56 a `#' character are ignored.  (Note: continuation lines are unwrapped
57 before comment processing is applied.)
58 .LP
59 Arguments on configuration lines are separated by white space. If an
60 argument contains white space, the argument should be enclosed in
61 double quotes.  If an argument contains a double quote (`"') or a
62 backslash character (`\\'), the character should be preceded by a
63 backslash character.
64 .LP
65 The specific configuration options available are discussed below in the
66 Global Configuration Options, General Backend Options, and General Database
67 Options.  Backend-specific options are discussed in the
68 .B slapd-<backend>(5)
69 manual pages.  Refer to the "OpenLDAP Administrator's Guide" for more
70 details on the slapd configuration file.
71 .SH GLOBAL CONFIGURATION OPTIONS
72 Options described in this section apply to all backends, unless specifically 
73 overridden in a backend definition. Arguments that should be replaced by 
74 actual text are shown in brackets <>.
75 .TP
76 .B access to <what> "[ by <who> <access> <control> ]+"
77 Grant access (specified by <access>) to a set of entries and/or
78 attributes (specified by <what>) by one or more requestors (specified
79 by <who>).
80 See
81 .BR slapd.access (5)
82 and the "OpenLDAP's Administrator's Guide" for details.
83 .TP
84 .B allow <features>
85 Specify a set of features (separated by white space) to
86 allow (default none).
87 .B bind_v2
88 allows acceptance of LDAPv2 bind requests.  Note that
89 .BR slapd (8)
90 does not truly implement LDAPv2 (RFC 1777), now Historic (RFC 3494).
91 .B bind_anon_cred
92 allows anonymous bind when credentials are not empty (e.g.
93 when DN is empty).
94 .B bind_anon_dn
95 allows unauthenticated (anonymous) bind when DN is not empty.
96 .B update_anon
97 allow unauthenticated (anonymous) update operations to be processed
98 (subject to access controls and other administrative limits).
99 .TP
100 .B argsfile <filename>
101 The ( absolute ) name of a file that will hold the 
102 .B slapd
103 server's command line options
104 if started without the debugging command line option.
105 .TP
106 .B attributeoptions [option-name]...
107 Define tagging attribute options or option tag/range prefixes.
108 Options must not end with `-', prefixes must end with `-'.
109 The `lang-' prefix is predefined.
110 If you use the
111 .B attributeoptions
112 directive, `lang-' will no longer be defined and you must specify it
113 explicitly if you want it defined.
114
115 An attribute description with a tagging option is a subtype of that
116 attribute description without the option.
117 Except for that, options defined this way have no special semantics.
118 Prefixes defined this way work like the `lang-' options:
119 They define a prefix for tagging options starting with the prefix.
120 That is, if you define the prefix `x-foo-', you can use the option
121 `x-foo-bar'.
122 Furthermore, in a search or compare, a prefix or range name (with
123 a trailing `-') matches all options starting with that name, as well
124 as the option with the range name sans the trailing `-'.
125 That is, `x-foo-bar-' matches `x-foo-bar' and `x-foo-bar-baz'.
126
127 RFC 2251 reserves options beginning with `x-' for private experiments.
128 Other options should be registered with IANA, see RFC 3383 section 3.4.
129 OpenLDAP also has the `binary' option built in, but this is a transfer
130 option, not a tagging option.
131 .HP
132 .hy 0
133 .B attributetype "(\ <oid>\
134  [NAME\ <name>]\
135  [DESC\ <description>]\
136  [OBSOLETE]\
137  [SUP\ <oid>]\
138  [EQUALITY\ <oid>]\
139  [ORDERING\ <oid>]\
140  [SUBSTR\ <oid>]\
141  [SYNTAX\ <oidlen>]\
142  [SINGLE\-VALUE]\
143  [COLLECTIVE]\
144  [NO\-USER\-MODIFICATION]\
145  [USAGE\ <attributeUsage>]\ )"
146 .RS
147 Specify an attribute type using the LDAPv3 syntax defined in RFC 2252.
148 The slapd parser extends the RFC 2252 definition by allowing string
149 forms as well as numeric OIDs to be used for the attribute OID and
150 attribute syntax OID.
151 (See the
152 .B objectidentifier
153 description.) 
154 .RE
155 .TP
156 .B authz-policy <policy>
157 Used to specify which rules to use for Proxy Authorization.  Proxy
158 authorization allows a client to authenticate to the server using one
159 user's credentials, but specify a different identity to use for authorization
160 and access control purposes. It essentially allows user A to login as user
161 B, using user A's password.
162 The
163 .B none
164 flag disables proxy authorization. This is the default setting.
165 The
166 .B from
167 flag will use rules in the
168 .I authzFrom
169 attribute of the authorization DN.
170 The
171 .B to
172 flag will use rules in the
173 .I authzTo
174 attribute of the authentication DN.
175 The
176 .B any
177 flag, an alias for the deprecated value of
178 .BR both ,
179 will allow any of the above, whatever succeeds first (checked in
180 .BR to ,
181 .B from
182 sequence.
183 The
184 .B all
185 flag requires both authorizations to succeed.
186 .LP
187 .RS
188 The rules are mechanisms to specify which identities are allowed 
189 to perform proxy authorization.
190 The
191 .I authzFrom
192 attribute in an entry specifies which other users
193 are allowed to proxy login to this entry. The
194 .I authzTo
195 attribute in
196 an entry specifies which other users this user can authorize as.  Use of
197 .I authzTo
198 rules can be easily
199 abused if users are allowed to write arbitrary values to this attribute.
200 In general the
201 .I authzTo
202 attribute must be protected with ACLs such that
203 only privileged users can modify it.
204 The value of
205 .I authzFrom
206 and
207 .I authzTo
208 describes an 
209 .B identity 
210 or a set of identities; it can take three forms:
211 .RS
212 .TP
213 .B ldap:///<base>??[<scope>]?<filter>
214 .RE
215 .RS
216 .B dn[.<dnstyle>]:<pattern>
217 .RE
218 .RS
219 .B u[<mech>[<realm>]]:<pattern>
220 .RE
221 .RS
222 .B group[/objectClass[/attributeType]]:<pattern>
223 .RE
224 .RS
225 .B <pattern>
226 .RE
227 .RS
228
229 .B <dnstyle>:={exact|onelevel|children|subtree|regex}
230
231 .RE
232 The first form is a valid LDAP
233 .B URI
234 where the 
235 .IR <host>:<port> ,
236 the
237 .I <attrs>
238 and the
239 .I <extensions>
240 portions must be absent, so that the search occurs locally on either
241 .I authzFrom
242 or 
243 .IR authzTo .
244 The second form is a 
245 .BR DN ,
246 with the optional style modifiers
247 .IR exact ,
248 .IR onelevel ,
249 .IR children ,
250 and
251 .I subtree
252 for exact, onelevel, children and subtree matches, which cause 
253 .I <pattern>
254 to be normalized according to the DN normalization rules, or the special
255 .I regex
256 style, which causes
257 .I <pattern>
258 to be compiled according to 
259 .BR regex (7).
260 A pattern of
261 .I *
262 means any non-anonymous DN.
263 The third form is a SASL
264 .BR id ,
265 with the optional fields
266 .I <mech>
267 and
268 .I <realm>
269 that allow to specify a SASL
270 .BR mechanism ,
271 and eventually a SASL
272 .BR realm ,
273 for those mechanisms that support one.
274 The need to allow the specification of a mechanism is still debated, 
275 and users are strongly discouraged to rely on this possibility.
276 The fourth form is a group specification, consisting of the keyword
277 .BR group ,
278 optionally followed by the specification of the group
279 .B objectClass
280 and member
281 .BR attributeType .
282 The group with DN
283 .B <pattern>
284 is searched with base scope, and in case of match, the values of the
285 member
286 .B attributeType
287 are searched for the asserted DN.
288 For backwards compatibility, if no identity type is provided, i.e. only
289 .B <pattern>
290 is present, an
291 .I exact DN
292 is assumed; as a consequence, 
293 .B <pattern>
294 is subjected to DN normalization.
295 Since the interpretation of
296 .I authzFrom
297 and
298 .I authzTo
299 can impact security, users are strongly encouraged 
300 to explicitly set the type of identity specification that is being used.
301 A subset of these rules can be used as third arg in the 
302 .B authz-regexp
303 statement (see below); significantly, the 
304 .I URI
305 and the
306 .I dn.exact:<dn> 
307 forms.
308 .RE
309 .TP
310 .B authz-regexp <match> <replace>
311 Used by the authentication framework to convert simple user names,
312 such as provided by SASL subsystem, to an LDAP DN used for
313 authorization purposes.  Note that the resultant DN need not refer
314 to an existing entry to be considered valid.  When an authorization
315 request is received from the SASL subsystem, the SASL 
316 .BR USERNAME ,
317 .BR REALM , 
318 and
319 .B MECHANISM
320 are taken, when available, and combined into a name of the form
321 .RS
322 .RS
323 .TP
324 .B UID=<username>[[,CN=<realm>],CN=<mechanism>],CN=auth
325
326 .RE
327 This name is then compared against the
328 .B match
329 regular expression, and if the match is successful, the name is
330 replaced with the
331 .B replace
332 string.  If there are wildcard strings in the 
333 .B match
334 regular expression that are enclosed in parenthesis, e.g. 
335 .RS
336 .TP
337 .B UID=([^,]*),CN=.*
338
339 .RE
340 then the portion of the name that matched the wildcard will be stored
341 in the numbered placeholder variable $1. If there are other wildcard strings
342 in parenthesis, the matching strings will be in $2, $3, etc. up to $9. The 
343 placeholders can then be used in the 
344 .B replace
345 string, e.g. 
346 .RS
347 .TP
348 .B UID=$1,OU=Accounts,DC=example,DC=com 
349
350 .RE
351 The replaced name can be either a DN or an LDAP URI. If the
352 latter, the server will use the URI to search its own database(s)
353 and, if the search returns exactly one entry, the name is
354 replaced by the DN of that entry.   The LDAP URI must have no
355 hostport, attrs, or extensions components, e.g.
356 .RS
357 .TP
358 .B ldap:///OU=Accounts,DC=example,DC=com??one?(UID=$1)
359
360 .RE
361 Multiple 
362 .B authz-regexp 
363 options can be given in the configuration file to allow for multiple matching 
364 and replacement patterns. The matching patterns are checked in the order they 
365 appear in the file, stopping at the first successful match.
366
367 .\".B Caution:
368 .\"Because the plus sign + is a character recognized by the regular expression engine,
369 .\"and it will appear in names that include a REALM, be careful to escape the
370 .\"plus sign with a backslash \\+ to remove the character's special meaning.
371 .RE
372 .TP
373 .B concurrency <integer>
374 Specify a desired level of concurrency.  Provided to the underlying
375 thread system as a hint.  The default is not to provide any hint.
376 .TP
377 .B conn_max_pending <integer>
378 Specify the maximum number of pending requests for an anonymous session.
379 If requests are submitted faster than the server can process them, they
380 will be queued up to this limit. If the limit is exceeded, the session
381 is closed. The default is 100.
382 .TP
383 .B conn_max_pending_auth <integer>
384 Specify the maximum number of pending requests for an authenticated session.
385 The default is 1000.
386 .\"-- NEW_LOGGING option --
387 .\".TP
388 .\".B debug <subsys> <level>
389 .\"Specify a logging level for a particular subsystem.  The subsystems include
390 .\".B global
391 .\"a global level for all subsystems,
392 .\".B acl
393 .\"the ACL engine,
394 .\".B backend
395 .\"the backend databases,
396 .\".B cache
397 .\"the entry cache manager,
398 .\".B config
399 .\"the config file reader,
400 .\".B connection
401 .\"the connection manager,
402 .\".B cyrus
403 .\"the Cyrus SASL library interface,
404 .\".B filter
405 .\"the search filter processor,
406 .\".B getdn
407 .\"the DN normalization library,
408 .\".B index
409 .\"the database indexer,
410 .\".B liblber
411 .\"the ASN.1 BER library,
412 .\".B module
413 .\"the dynamic module loader,
414 .\".B operation
415 .\"the LDAP operation processors,
416 .\".B sasl
417 .\"the SASL authentication subsystem,
418 .\".B schema
419 .\"the schema processor, and
420 .\".B tls
421 .\"the TLS library interface. This is not an exhaustive list; there are many
422 .\"other subsystems and more are added over time.
423 .\"
424 .\"The levels are, in order of decreasing priority:
425 .\".B emergency, alert, critical, error, warning, notice, information, entry,
426 .\".B args, results, detail1, detail2
427 .\"An integer may be used instead, with 0 corresponding to
428 .\".B emergency
429 .\"up to 11 for
430 .\".BR detail2 .
431 .\"The
432 .\".B entry
433 .\"level logs function entry points,
434 .\".B args
435 .\"adds function call parameters, and
436 .\".B results
437 .\"adds the function results to the logs.
438 .\"The
439 .\".B detail1
440 .\"and
441 .\".B detail2
442 .\"levels add even more low level detail from individual functions.
443 .TP
444 .B defaultsearchbase <dn>
445 Specify a default search base to use when client submits a
446 non-base search request with an empty base DN.
447 .TP
448 .B disallow <features>
449 Specify a set of features (separated by white space) to
450 disallow (default none).
451 .B bind_anon
452 disables acceptance of anonymous bind requests.
453 .B bind_simple
454 disables simple (bind) authentication.
455 .B bind_krbv4
456 disables Kerberos V4 (bind) authentication.
457 .B tls_2_anon
458 disables Start TLS from forcing session to anonymous status (see also
459 .BR tls_authc ).
460 .B tls_authc
461 disables StartTLS if authenticated (see also
462 .BR tls_2_anon ).
463 .HP
464 .hy 0
465 .B ditcontentrule "(\ <oid>\
466  [NAME\ <name>]\
467  [DESC\ <description>]\
468  [OBSOLETE]\
469  [AUX\ <oids>]\
470  [MUST\ <oids>]\
471  [MAY\ <oids>]\
472  [NOT\ <oids>]\ )"
473 .RS
474 Specify an DIT Content Rule using the LDAPv3 syntax defined in RFC 2252.
475 The slapd parser extends the RFC 2252 definition by allowing string
476 forms as well as numeric OIDs to be used for the attribute OID and
477 attribute syntax OID.
478 (See the
479 .B objectidentifier
480 description.) 
481 .RE
482 .TP
483 .B gentlehup { on | off }
484 A SIGHUP signal will only cause a 'gentle' shutdown-attempt:
485 .B Slapd
486 will stop listening for new connections, but will not close the
487 connections to the current clients.  Future write operations return
488 unwilling-to-perform, though.  Slapd terminates when all clients
489 have closed their connections (if they ever do), or \- as before \-
490 if it receives a SIGTERM signal.  This can be useful if you wish to
491 terminate the server and start a new
492 .B slapd
493 server
494 .B with another database,
495 without disrupting the currently active clients.
496 The default is off.  You may wish to use
497 .B idletimeout
498 along with this option.
499 .TP
500 .B idletimeout <integer>
501 Specify the number of seconds to wait before forcibly closing
502 an idle client connection.  A idletimeout of 0 disables this
503 feature.  The default is 0.
504 .TP
505 .B include <filename>
506 Read additional configuration information from the given file before
507 continuing with the next line of the current file.
508 .\"-- NEW_LOGGING option --
509 .\".TP
510 .\".B logfile <filename>
511 .\"Specify a file for recording debug log messages. By default these messages
512 .\"only go to stderr and are not recorded anywhere else. Specifying a logfile
513 .\"copies messages to both stderr and the logfile.
514 .TP
515 .B localSSF <SSF>
516 Specifies the Security Strength Factor (SSF) to be given local LDAP sessions,
517 such as those to the ldapi:// listener.  For a description of SSF values,
518 see 
519 .BR sasl-secprops 's
520 .B minssf
521 property description.
522 .TP
523 .B loglevel <integer> [...]
524 Specify the level at which debugging statements and operation 
525 statistics should be syslogged (currently logged to the
526 .BR syslogd (8) 
527 LOG_LOCAL4 facility).  Log levels are additive, and available levels
528 are:
529 .RS
530 .RS
531 .PD 0
532 .TP
533 .B 1
534 .B (trace)
535 trace function calls
536 .TP
537 .B 2
538 .B (packet)
539 debug packet handling
540 .TP
541 .B 4
542 .B (args)
543 heavy trace debugging
544 .TP
545 .B 8
546 .B (conns)
547 connection management
548 .TP
549 .B 16
550 .B (BER)
551 print out packets sent and received
552 .TP
553 .B 32
554 .B (filter)
555 search filter processing
556 .TP
557 .B 64
558 .B (config)
559 configuration file processing
560 .TP
561 .B 128
562 .B (ACL)
563 access control list processing
564 .TP
565 .B 256
566 .B (stats)
567 stats log connections/operations/results
568 .TP
569 .B 512
570 .B (stats2)
571 stats log entries sent
572 .TP
573 .B 1024
574 .B (shell)
575 print communication with shell backends
576 .TP
577 .B 2048
578 .B (parse)
579 entry parsing
580 .PD
581 .RE
582 The desired log level can be input as a single integer that combines 
583 the (ORed) desired levels, as a list of integers (that are ORed internally),
584 or as a list of the names that are shown between brackets, such that
585 .LP
586 .nf
587     loglevel 129
588     loglevel 128 1
589     loglevel acl trace
590 .fi
591 .LP
592 are equivalent.
593 The keyword 
594 .B any
595 can be used as a shortcut to enable logging at all levels (equivalent to -1).
596 .RE
597 .TP
598 .B moduleload <filename>
599 Specify the name of a dynamically loadable module to load. The filename
600 may be an absolute path name or a simple filename. Non-absolute names
601 are searched for in the directories specified by the
602 .B modulepath
603 option. This option and the
604 .B modulepath
605 option are only usable if slapd was compiled with --enable-modules.
606 .TP
607 .B modulepath <pathspec>
608 Specify a list of directories to search for loadable modules. Typically
609 the path is colon-separated but this depends on the operating system.
610 .HP
611 .hy 0
612 .B objectclass "(\ <oid>\
613  [NAME\ <name>]\
614  [DESC\ <description]\
615  [OBSOLETE]\
616  [SUP\ <oids>]\
617  [{ ABSTRACT | STRUCTURAL | AUXILIARY }]\
618  [MUST\ <oids>] [MAY\ <oids>] )"
619 .RS
620 Specify an objectclass using the LDAPv3 syntax defined in RFC 2252.
621 The slapd parser extends the RFC 2252 definition by allowing string
622 forms as well as numeric OIDs to be used for the object class OID.
623 (See the
624 .B
625 objectidentifier
626 description.)  Object classes are "STRUCTURAL" by default.
627 .RE
628 .TP
629 .B objectidentifier <name> "{ <oid> | <name>[:<suffix>] }"
630 Define a string name that equates to the given OID. The string can be used
631 in place of the numeric OID in objectclass and attribute definitions. The
632 name can also be used with a suffix of the form ":xx" in which case the
633 value "oid.xx" will be used.
634 .TP
635 .B password-hash <hash> [<hash>...]
636 This option configures one or more hashes to be used in generation of user
637 passwords stored in the userPassword attribute during processing of
638 LDAP Password Modify Extended Operations (RFC 3062).
639 The <hash> must be one of
640 .BR {SSHA} ,
641 .BR {SHA} ,
642 .BR {SMD5} ,
643 .BR {MD5} ,
644 .BR {CRYPT} ,
645 and
646 .BR {CLEARTEXT} .
647 The default is
648 .BR {SSHA} .
649
650 .B {SHA}
651 and
652 .B {SSHA}
653 use the SHA-1 algorithm (FIPS 160-1), the latter with a seed.
654
655 .B {MD5}
656 and
657 .B {SMD5}
658 use the MD5 algorithm (RFC 1321), the latter with a seed.
659
660 .B {CRYPT}
661 uses the
662 .BR crypt (3).
663
664 .B {CLEARTEXT}
665 indicates that the new password should be
666 added to userPassword as clear text.
667
668 Note that this option does not alter the normal user applications
669 handling of userPassword during LDAP Add, Modify, or other LDAP operations.
670 .TP
671 .B password\-crypt\-salt\-format <format>
672 Specify the format of the salt passed to
673 .BR crypt (3)
674 when generating {CRYPT} passwords (see
675 .BR password\-hash )
676 during processing of LDAP Password Modify Extended Operations (RFC 3062).
677
678 This string needs to be in
679 .BR sprintf (3)
680 format and may include one (and only one) %s conversion.
681 This conversion will be substituted with a string of random
682 characters from [A\-Za\-z0\-9./].  For example, "%.2s"
683 provides a two character salt and "$1$%.8s" tells some
684 versions of crypt(3) to use an MD5 algorithm and provides
685 8 random characters of salt.  The default is "%s", which
686 provides 31 characters of salt.
687 .TP
688 .B pidfile <filename>
689 The ( absolute ) name of a file that will hold the 
690 .B slapd
691 server's process ID ( see
692 .BR getpid (2)
693 ) if started without the debugging command line option.
694 .TP
695 .B referral <url>
696 Specify the referral to pass back when
697 .BR slapd (8)
698 cannot find a local database to handle a request.
699 If specified multiple times, each url is provided.
700 .TP
701 .B replica-argsfile
702 The ( absolute ) name of a file that will hold the 
703 .B slurpd
704 server's command line options
705 if started without the debugging command line option.
706 .TP
707 .B replica-pidfile
708 The ( absolute ) name of a file that will hold the 
709 .B slurpd
710 server's process ID ( see
711 .BR getpid (2)
712 ) if started without the debugging command line option.
713 .TP
714 .B replicationinterval
715 The number of seconds 
716 .B slurpd 
717 waits before checking the replogfile for changes.
718 .TP
719 .B require <conditions>
720 Specify a set of conditions (separated by white space) to
721 require (default none).
722 The directive may be specified globally and/or per-database.
723 .B bind
724 requires bind operation prior to directory operations.
725 .B LDAPv3
726 requires session to be using LDAP version 3.
727 .B authc
728 requires authentication prior to directory operations.
729 .B SASL
730 requires SASL authentication prior to directory operations.
731 .B strong
732 requires strong authentication prior to directory operations.
733 The strong keyword allows protected "simple" authentication
734 as well as SASL authentication.
735 .B none
736 may be used to require no conditions (useful for clearly globally
737 set conditions within a particular database).
738 .TP
739 .B reverse-lookup on | off
740 Enable/disable client name unverified reverse lookup (default is 
741 .BR off 
742 if compiled with --enable-rlookups).
743 .TP
744 .B rootDSE <file>
745 Specify the name of an LDIF(5) file containing user defined attributes
746 for the root DSE.  These attributes are returned in addition to the
747 attributes normally produced by slapd.
748 .TP
749 .B sasl-host <fqdn>
750 Used to specify the fully qualified domain name used for SASL processing.
751 .TP
752 .B sasl-realm <realm>
753 Specify SASL realm.  Default is empty.
754 .TP
755 .B sasl-secprops <properties>
756 Used to specify Cyrus SASL security properties.
757 The
758 .B none
759 flag (without any other properties) causes the flag properties
760 default, "noanonymous,noplain", to be cleared.
761 The
762 .B noplain
763 flag disables mechanisms susceptible to simple passive attacks.
764 The
765 .B noactive
766 flag disables mechanisms susceptible to active attacks.
767 The
768 .B nodict
769 flag disables mechanisms susceptible to passive dictionary attacks.
770 The
771 .B noanonymous
772 flag disables mechanisms which support anonymous login.
773 The
774 .B forwardsec
775 flag require forward secrecy between sessions.
776 The
777 .B passcred
778 require mechanisms which pass client credentials (and allow
779 mechanisms which can pass credentials to do so).
780 The
781 .B minssf=<factor> 
782 property specifies the minimum acceptable
783 .I security strength factor
784 as an integer approximate to effective key length used for
785 encryption.  0 (zero) implies no protection, 1 implies integrity
786 protection only, 56 allows DES or other weak ciphers, 112
787 allows triple DES and other strong ciphers, 128 allows RC4,
788 Blowfish and other modern strong ciphers.  The default is 0.
789 The
790 .B maxssf=<factor> 
791 property specifies the maximum acceptable
792 .I security strength factor
793 as an integer (see minssf description).  The default is INT_MAX.
794 The
795 .B maxbufsize=<size> 
796 property specifies the maximum security layer receive buffer
797 size allowed.  0 disables security layers.  The default is 65536.
798 .TP
799 .B schemadn <dn>
800 Specify the distinguished name for the subschema subentry that
801 controls the entries on this server.  The default is "cn=Subschema".
802 .TP
803 .B security <factors>
804 Specify a set of factors (separated by white space) to require.
805 An integer value is associated with each factor and is roughly
806 equivalent of the encryption key length to require.  A value
807 of 112 is equivalent to 3DES, 128 to Blowfish, etc..
808 The directive may be specified globally and/or per-database.
809 .B ssf=<n>
810 specifies the overall security strength factor.
811 .B transport=<n>
812 specifies the transport security strength factor.
813 .B tls=<n>
814 specifies the TLS security strength factor.
815 .B sasl=<n>
816 specifies the SASL security strength factor.
817 .B update_ssf=<n>
818 specifies the overall security strength factor to require for
819 directory updates.
820 .B update_transport=<n>
821 specifies the transport security strength factor to require for
822 directory updates.
823 .B update_tls=<n>
824 specifies the TLS security strength factor to require for
825 directory updates.
826 .B update_sasl=<n>
827 specifies the SASL security strength factor to require for
828 directory updates.
829 .B simple_bind=<n>
830 specifies the security strength factor required for
831 .I simple
832 username/password authentication.
833 Note that the
834 .B transport
835 factor is measure of security provided by the underlying transport,
836 e.g. ldapi:// (and eventually IPSEC).  It is not normally used.
837 .TP
838 .B sizelimit {<integer>|unlimited}
839 .TP
840 .B sizelimit size[.{soft|hard|unchecked}]=<integer> [...]
841 Specify the maximum number of entries to return from a search operation.
842 The default size limit is 500.
843 Use
844 .B unlimited
845 to specify no limits.
846 The second format allows a fine grain setting of the size limits.
847 Extra args can be added on the same line.
848 See
849 .BR limits
850 for an explanation of the different flags.
851 .TP
852 .B sockbuf_max_incoming <integer>
853 Specify the maximum incoming LDAP PDU size for anonymous sessions.
854 The default is 262143.
855 .TP
856 .B sockbuf_max_incoming_auth <integer>
857 Specify the maximum incoming LDAP PDU size for authenticated sessions.
858 The default is 4194303.
859 .TP
860 .B srvtab <filename>
861 Specify the srvtab file in which the kerberos keys necessary for
862 authenticating clients using kerberos can be found. This option is only
863 meaningful if you are using Kerberos authentication.
864 .TP
865 .B threads <integer>
866 Specify the maximum size of the primary thread pool.
867 The default is 16.
868 .TP
869 .B timelimit {<integer>|unlimited}
870 .TP
871 .B timelimit time[.{soft|hard}]=<integer> [...]
872 Specify the maximum number of seconds (in real time)
873 .B slapd
874 will spend answering a search request.  The default time limit is 3600.
875 Use
876 .B unlimited
877 to specify no limits.
878 The second format allows a fine grain setting of the time limits.
879 Extra args can be added on the same line.
880 See
881 .BR limits
882 for an explanation of the different flags.
883 .TP
884 .B ucdata-path <path>
885 Specify the path to the directory containing the Unicode character
886 tables. The default path is DATADIR/ucdata.
887 .SH TLS OPTIONS
888 If
889 .B slapd
890 is built with support for Transport Layer Security, there are more options
891 you can specify.
892 .TP
893 .B TLSCipherSuite <cipher-suite-spec>
894 Permits configuring what ciphers will be accepted and the preference order.
895 <cipher-suite-spec> should be a cipher specification for OpenSSL.  Example:
896
897 TLSCipherSuite HIGH:MEDIUM:+SSLv2
898
899 To check what ciphers a given spec selects, use:
900
901 openssl ciphers -v <cipher-suite-spec>
902 .TP
903 .B TLSCACertificateFile <filename>
904 Specifies the file that contains certificates for all of the Certificate
905 Authorities that
906 .B slapd
907 will recognize.
908 .TP
909 .B TLSCACertificatePath <path>
910 Specifies the path of a directory that contains Certificate Authority
911 certificates in separate individual files. Usually only one of this
912 or the TLSCACertificateFile is used.
913 .TP
914 .B TLSCertificateFile <filename>
915 Specifies the file that contains the
916 .B slapd
917 server certificate.
918 .TP
919 .B TLSCertificateKeyFile <filename>
920 Specifies the file that contains the
921 .B slapd
922 server private key that matches the certificate stored in the
923 .B TLSCertificateFile
924 file.  Currently, the private key must not be protected with a password, so
925 it is of critical importance that it is protected carefully. 
926 .TP
927 .B TLSRandFile <filename>
928 Specifies the file to obtain random bits from when /dev/[u]random
929 is not available.  Generally set to the name of the EGD/PRNGD socket.
930 The environment variable RANDFILE can also be used to specify the filename.
931 .TP
932 .B TLSVerifyClient <level>
933 Specifies what checks to perform on client certificates in an
934 incoming TLS session, if any.
935 The
936 .B <level>
937 can be specified as one of the following keywords:
938 .RS
939 .TP
940 .B never
941 This is the default.
942 .B slapd
943 will not ask the client for a certificate.
944 .TP
945 .B allow
946 The client certificate is requested.  If no certificate is provided,
947 the session proceeds normally.  If a bad certificate is provided,
948 it will be ignored and the session proceeds normally.
949 .TP
950 .B try
951 The client certificate is requested.  If no certificate is provided,
952 the session proceeds normally.  If a bad certificate is provided,
953 the session is immediately terminated.
954 .TP
955 .B demand | hard | true
956 These keywords are all equivalent, for compatibility reasons.
957 The client certificate is requested.  If no certificate is provided,
958 or a bad certificate is provided, the session is immediately terminated.
959
960 Note that a valid client certificate is required in order to use the
961 SASL EXTERNAL authentication mechanism with a TLS session.  As such,
962 a non-default
963 .B TLSVerifyClient
964 setting must be chosen to enable SASL EXTERNAL authentication.
965 .RE
966 .SH GENERAL BACKEND OPTIONS
967 Options in this section only apply to the configuration file section
968 for the specified backend.  They are supported by every
969 type of backend.
970 .TP
971 .B backend <databasetype>
972 Mark the beginning of a backend definition. <databasetype>
973 should be one of
974 .BR bdb ,
975 .BR dnssrv ,
976 .BR ldap ,
977 .BR ldbm ,
978 .BR meta ,
979 .BR monitor ,
980 .BR null ,
981 .BR passwd ,
982 .BR perl ,
983 .BR relay ,
984 .BR shell ,
985 .BR sql ,
986 or
987 .BR tcl ,
988 depending on which backend will serve the database.
989
990 .SH GENERAL DATABASE OPTIONS
991 Options in this section only apply to the configuration file section
992 for the database in which they are defined.  They are supported by every
993 type of backend.  Note that the
994 .B database
995 and at least one
996 .B suffix
997 option are mandatory for each database.
998 .TP
999 .B database <databasetype>
1000 Mark the beginning of a new database instance definition. <databasetype>
1001 should be one of
1002 .BR bdb ,
1003 .BR dnssrv ,
1004 .BR ldap ,
1005 .BR ldbm ,
1006 .BR meta ,
1007 .BR monitor ,
1008 .BR null ,
1009 .BR passwd ,
1010 .BR perl ,
1011 .BR relay ,
1012 .BR shell ,
1013 .BR sql ,
1014 or
1015 .BR tcl ,
1016 depending on which backend will serve the database.
1017 .TP
1018 .B lastmod on | off
1019 Controls whether
1020 .B slapd
1021 will automatically maintain the 
1022 modifiersName, modifyTimestamp, creatorsName, and 
1023 createTimestamp attributes for entries.  By default, lastmod is on.
1024 .TP
1025 .B limits <who> <limit> [<limit> [...]]
1026 Specify time and size limits based on who initiated an operation.
1027 The argument
1028 .B who
1029 can be any of
1030 .RS
1031 .RS
1032 .TP
1033 anonymous | users | [dn[.<style>]=]<pattern> | group[/oc[/at]]=<pattern>
1034
1035 .RE
1036 with
1037 .RS
1038 .TP
1039 <style> ::= exact | base | onelevel | subtree | children | regex | anonymous
1040
1041 .RE
1042 The term
1043 .B anonymous
1044 matches all unauthenticated clients.
1045 The term
1046 .B users
1047 matches all authenticated clients;
1048 otherwise an
1049 .B exact
1050 dn pattern is assumed unless otherwise specified by qualifying 
1051 the (optional) key string
1052 .B dn
1053 with 
1054 .B exact
1055 or
1056 .B base
1057 (which are synonyms), to require an exact match; with
1058 .BR onelevel , 
1059 to require exactly one level of depth match; with
1060 .BR subtree ,
1061 to allow any level of depth match, including the exact match; with
1062 .BR children ,
1063 to allow any level of depth match, not including the exact match;
1064 .BR regex
1065 explicitly requires the (default) match based on regular expression
1066 pattern, as detailed in
1067 .BR regex (7).
1068 Finally,
1069 .B anonymous
1070 matches unbound operations; the 
1071 .B pattern
1072 field is ignored.
1073 The same behavior is obtained by using the 
1074 .B anonymous
1075 form of the
1076 .B who
1077 clause.
1078 The term
1079 .BR group ,
1080 with the optional objectClass
1081 .B oc
1082 and attributeType
1083 .B at
1084 fields, followed by
1085 .BR pattern ,
1086 sets the limits for any DN listed in the values of the
1087 .B at
1088 attribute (default
1089 .BR member )
1090 of the 
1091 .B oc
1092 group objectClass (default
1093 .BR groupOfNames )
1094 whose DN exactly matches
1095 .BR pattern .
1096
1097 The currently supported limits are 
1098 .B size
1099 and 
1100 .BR time .
1101
1102 The syntax for time limits is 
1103 .BR time[.{soft|hard}]=<integer> ,
1104 where 
1105 .I integer
1106 is the number of seconds slapd will spend answering a search request.
1107 If no time limit is explicitly requested by the client, the 
1108 .BR soft
1109 limit is used; if the requested time limit exceeds the
1110 .BR hard
1111 .\"limit, an
1112 .\".I "Administrative limit exceeded"
1113 .\"error is returned.
1114 limit, the value of the limit is used instead.
1115 If the
1116 .BR hard
1117 limit is set to the keyword 
1118 .IR soft ,
1119 the soft limit is used in either case; if it is set to the keyword 
1120 .IR unlimited , 
1121 no hard limit is enforced.
1122 Explicit requests for time limits smaller or equal to the
1123 .BR hard 
1124 limit are honored.
1125 If no limit specifier is set, the value is assigned to the 
1126 .BR soft 
1127 limit, and the
1128 .BR hard
1129 limit is set to
1130 .IR soft ,
1131 to preserve the original behavior.
1132
1133 The syntax for size limits is
1134 .BR size[.{soft|hard|unchecked}]=<integer> ,
1135 where
1136 .I integer
1137 is the maximum number of entries slapd will return answering a search 
1138 request.
1139 If no size limit is explicitly requested by the client, the
1140 .BR soft
1141 limit is used; if the requested size limit exceeds the
1142 .BR hard
1143 .\"limit, an 
1144 .\".I "Administrative limit exceeded"
1145 .\"error is returned.
1146 limit, the value of the limit is used instead.
1147 If the 
1148 .BR hard
1149 limit is set to the keyword 
1150 .IR soft , 
1151 the soft limit is used in either case; if it is set to the keyword
1152 .IR unlimited , 
1153 no hard limit is enforced.
1154 Explicit requests for size limits smaller or equal to the
1155 .BR hard
1156 limit are honored.
1157 The
1158 .BR unchecked
1159 specifier sets a limit on the number of candidates a search request is allowed
1160 to examine.
1161 The rationale behind it is that searches for non-properly indicized
1162 attributes may result in large sets of candidates, which must be 
1163 examined by
1164 .BR slapd (8)
1165 to determine whether they match the search filter or not.
1166 The
1167 .B unckeched
1168 limit provides a means to drop such operations before they are even 
1169 started.
1170 If the selected candidates exceed the 
1171 .BR unchecked
1172 limit, the search will abort with 
1173 .IR "Unwilling to perform" .
1174 If it is set to the keyword 
1175 .IR unlimited , 
1176 no limit is applied (the default).
1177 If it is set to
1178 .IR disable ,
1179 the search is not even performed; this can be used to disallow searches
1180 for a specific set of users.
1181 If no limit specifier is set, the value is assigned to the
1182 .BR soft 
1183 limit, and the
1184 .BR hard
1185 limit is set to
1186 .IR soft ,
1187 to preserve the original behavior.
1188
1189 In case of no match, the global limits are used.
1190 The default values are the same of
1191 .B sizelimit
1192 and
1193 .BR timelimit ;
1194 no limit is set on 
1195 .BR unchecked .
1196
1197 If 
1198 .B pagedResults
1199 control is requested, the 
1200 .B hard
1201 size limit is used by default, because the request of a specific page size
1202 is considered an explicit request for a limitation on the number
1203 of entries to be returned.
1204 However, the size limit applies to the total count of entries returned within
1205 the search, and not to a single page.
1206 Additional size limits may be enforced; the syntax is
1207 .BR size.pr={<integer>|noEstimate|unlimited} ,
1208 where
1209 .I integer
1210 is the max page size if no explicit limit is set; the keyword
1211 .I noEstimate
1212 inhibits the server from returning an estimate of the total number
1213 of entries that might be returned
1214 (note: the current implementation does not return any estimate).
1215 The keyword
1216 .I unlimited
1217 indicates that no limit is applied to the pagedResults control page size.
1218 The syntax
1219 .B size.prtotal={<integer>|unlimited|disabled}
1220 allows to set a limit on the total number of entries that a pagedResults
1221 control allows to return.
1222 By default it is set to the 
1223 .B hard
1224 limit.
1225 When set, 
1226 .I integer
1227 is the max number of entries that the whole search with pagedResults control
1228 can return.
1229 Use 
1230 .I unlimited
1231 to allow unlimited number of entries to be returned, e.g. to allow
1232 the use of the pagedResults control as a means to circumvent size 
1233 limitations on regular searches; the keyword
1234 .I disabled
1235 disables the control, i.e. no paged results can be returned.
1236 Note that the total number of entries returned when the pagedResults control 
1237 is requested cannot exceed the 
1238 .B hard 
1239 size limit of regular searches unless extended by the
1240 .B prtotal
1241 switch.
1242 .RE
1243 .TP
1244 .B maxderefdepth <depth>
1245 Specifies the maximum number of aliases to dereference when trying to
1246 resolve an entry, used to avoid infinite alias loops. The default is 1.
1247 .TP
1248 .B overlay <overlay-name>
1249 Add the specified overlay to this database. An overlay is a piece of
1250 code that intercepts database operations in order to extend or change
1251 them. Overlays are pushed onto
1252 a stack over the database, and so they will execute in the reverse
1253 of the order in which they were configured and the database itself
1254 will receive control last of all.
1255 .TP
1256 .B readonly on | off
1257 This option puts the database into "read-only" mode.  Any attempts to 
1258 modify the database will return an "unwilling to perform" error.  By
1259 default, readonly is off.
1260 .HP
1261 .hy 0
1262 .B replica uri=ldap[s]://<hostname>[:port]|host=<hostname>[:port] 
1263 .B [starttls=yes|critical]
1264 .B [suffix=<suffix> [...]]
1265 .B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
1266 .B [saslmech=<SASL mech>] [secprops=<properties>] [realm=<realm>]
1267 .B [authcId=<authentication ID>] [authzId=<authorization ID>]
1268 .B [attr[!]=<attr list>]
1269 .RS
1270 Specify a replication site for this database.  Refer to the "OpenLDAP 
1271 Administrator's Guide" for detailed information on setting up a replicated
1272 .B slapd
1273 directory service. Zero or more
1274 .B suffix
1275 instances can be used to select the subtrees that will be replicated
1276 (defaults to all the database). 
1277 .B host
1278 is deprecated in favor of the
1279 .B uri
1280 option.
1281 .B uri
1282 allows the replica LDAP server to be specified as an LDAP URI. 
1283 A
1284 .B bindmethod
1285 of
1286 .B simple
1287 requires the options
1288 .B binddn 
1289 and
1290 .B credentials  
1291 and should only be used when adequate security services 
1292 (e.g TLS or IPSEC) are in place. A
1293 .B bindmethod 
1294 of
1295 .B sasl 
1296 requires the option
1297 .B saslmech. 
1298 Specific security properties (as with the
1299 .B sasl-secprops
1300 keyword above) for a SASL bind can be set with the
1301 .B secprops
1302 option. A non-default SASL realm can be set with the
1303 .B realm
1304 option.
1305 If the 
1306 .B mechanism
1307 will use Kerberos, a kerberos instance should be given in 
1308 .B authcId.
1309 An
1310 .B attr list
1311 can be given after the 
1312 .B attr
1313 keyword to allow the selective replication of the listed attributes only;
1314 if the optional 
1315 .B !
1316 mark is used, the list is considered exclusive, i.e. the listed attributes
1317 are not replicated.
1318 If an objectClass is listed, all the related attributes
1319 are (are not) replicated.
1320 .RE
1321 .TP
1322 .B replogfile <filename>
1323 Specify the name of the replication log file to log changes to.  
1324 The replication log is typically written by
1325 .BR slapd (8)
1326 and read by
1327 .BR slurpd (8).
1328 See
1329 .BR slapd.replog (5)
1330 for more information.  The specified file should be located
1331 in a directory with limited read/write/execute access as the replication
1332 logs may contain sensitive information.
1333 .TP
1334 .B restrict <oplist>
1335 Specify a whitespace separated list of operations that are restricted.
1336 If defined inside a database specification, restrictions apply only
1337 to that database, otherwise they are global.
1338 Operations can be any of 
1339 .BR add ,
1340 .BR bind ,
1341 .BR compare ,
1342 .BR delete ,
1343 .BR extended[=<OID>] ,
1344 .BR modify ,
1345 .BR rename ,
1346 .BR search ,
1347 or the special pseudo-operations
1348 .B read
1349 and
1350 .BR write ,
1351 which respectively summarize read and write operations.
1352 The use of 
1353 .I restrict write
1354 is equivalent to 
1355 .I readonly on
1356 (see above).
1357 The 
1358 .B extended
1359 keyword allows to indicate the OID of the specific operation
1360 to be restricted.
1361 .TP
1362 .B rootdn <dn>
1363 Specify the distinguished name that is not subject to access control 
1364 or administrative limit restrictions for operations on this database.
1365 This DN may or may not be associated with an entry.  An empty root
1366 DN (the default) specifies no root access is to be granted.  It is
1367 recommended that the rootdn only be specified when needed (such as
1368 when initially populating a database).  If the rootdn is within
1369 a namingContext (suffix) of the database, a simple bind password
1370 may also be provided using the
1371 .B rootpw
1372 directive.
1373 .TP
1374 .B rootpw <password>
1375 Specify a password (or hash of the password) for the rootdn.  The
1376 password can only be set if the rootdn is within the namingContext
1377 (suffix) of the database.
1378 This option accepts all RFC 2307 userPassword formats known to
1379 the server (see 
1380 .B password-hash
1381 description) as well as cleartext.
1382 .BR slappasswd (8) 
1383 may be used to generate a hash of a password.  Cleartext
1384 and \fB{CRYPT}\fP passwords are not recommended.  If empty
1385 (the default), authentication of the root DN is by other means
1386 (e.g. SASL).  Use of SASL is encouraged.
1387 .TP
1388 .B suffix <dn suffix>
1389 Specify the DN suffix of queries that will be passed to this 
1390 backend database.  Multiple suffix lines can be given and at least one is 
1391 required for each database definition.
1392 If the suffix of one database is "inside" that of another, the database
1393 with the inner suffix must come first in the configuration file.
1394 .TP
1395 .B subordinate
1396 Specify that the current backend database is a subordinate of another
1397 backend database. A subordinate database may have only one suffix. This
1398 option may be used to glue multiple databases into a single namingContext.
1399 If the suffix of the current database is within the namingContext of a
1400 superior database, searches against the superior database will be
1401 propagated to the subordinate as well. All of the databases
1402 associated with a single namingContext should have identical rootdns.
1403 Behavior of other LDAP operations is unaffected by this setting. In
1404 particular, it is not possible to use moddn to move an entry from
1405 one subordinate to another subordinate within the namingContext.
1406 .HP
1407 .hy 0
1408 .B syncrepl rid=<replica ID>
1409 .B provider=ldap[s]://<hostname>[:port]
1410 .B [type=refreshOnly|refreshAndPersist]
1411 .B [interval=dd:hh:mm:ss]
1412 .B [searchbase=<base DN>]
1413 .B [filter=<filter str>]
1414 .B [scope=sub|one|base]
1415 .B [attrs=<attr list>]
1416 .B [attrsonly]
1417 .B [sizelimit=<limit>]
1418 .B [timelimit=<limit>]
1419 .B [schemachecking=on|off]
1420 .B [updatedn=<dn>]
1421 .B [bindmethod=simple|sasl]
1422 .B [binddn=<dn>]
1423 .B [saslmech=<mech>]
1424 .B [authcid=<identity>]
1425 .B [authzid=<identity>]
1426 .B [credentials=<passwd>]
1427 .B [realm=<realm>]
1428 .B [secprops=<properties>]
1429 .RS
1430 Specify the current database as a replica which is kept up-to-date with the 
1431 master content by establishing the current
1432 .BR slapd (8)
1433 as a replication consumer site running a
1434 .B syncrepl
1435 replication engine.
1436 The replica content is kept synchronized to the master content using
1437 the LDAP Content Synchronization protocol. Refer to the
1438 "OpenLDAP Administrator's Guide" for detailed information on
1439 setting up a replicated
1440 .B slapd
1441 directory service using the 
1442 .B syncrepl
1443 replication engine.
1444 .B rid
1445 identifies the current
1446 .B syncrepl
1447 directive within the replication consumer site.
1448 It is a non-negative integer having no more than three digits.
1449 .B provider
1450 specifies the replication provider site containing the master content
1451 as an LDAP URI. If <port> is not given, the standard LDAP port number
1452 (389 or 636) is used. The content of the
1453 .B syncrepl
1454 replica is defined using a search
1455 specification as its result set. The consumer
1456 .B slapd
1457 will send search requests to the provider
1458 .B slapd
1459 according to the search specification. The search specification includes
1460 .B searchbase, scope, filter, attrs, attrsonly, sizelimit,
1461 and
1462 .B timelimit
1463 parameters as in the normal search specification.
1464 The search specification for the LDAP Content Synchronization operation
1465 has the same value syntax and the same default values as in the
1466 .BR ldapsearch (1)
1467 client search tool.
1468 The LDAP Content Synchronization protocol has two operation types.
1469 In the
1470 .B refreshOnly
1471 operation, the next synchronization search operation
1472 is periodically rescheduled at an interval time (specified by 
1473 .B interval
1474 parameter; 1 day by default)
1475 after each synchronization operation finishes.
1476 In the
1477 .B refreshAndPersist
1478 operation, a synchronization search remains persistent in the provider slapd.
1479 Further updates to the master replica will generate
1480 .B searchResultEntry
1481 to the consumer slapd as the search responses to the persistent
1482 synchronization search. If the connection is lost, the consumer will
1483 attempt to reconnect at an interval time (specified by
1484 .B interval
1485 parameter; 60 seconds by default) until the session is re-established.
1486 The schema checking can be enforced at the LDAP Sync
1487 consumer site by turning on the
1488 .B schemachecking
1489 parameter. The default is off.
1490 The
1491 .B updatedn
1492 parameter specifies the DN in the consumer site
1493 which is allowed to make changes to the replica.
1494 The DN should have read/write access to the replica database.
1495 Generally, this DN
1496 .I should not
1497 be the same as the
1498 .B rootdn
1499 of the master database.
1500 A
1501 .B bindmethod
1502 of 
1503 .B simple
1504 requires the options 
1505 .B binddn
1506 and 
1507 .B credentials
1508 and should only be used when adequate security services
1509 (e.g. TLS or IPSEC) are in place.
1510 A
1511 .B bindmethod
1512 of
1513 .B sasl
1514 requires the option
1515 .B saslmech.
1516 Depending on the mechanism, an authentication identity and/or
1517 credentials can be specified using
1518 .B authcid
1519 and
1520 .B credentials.
1521 The
1522 .B authzid
1523 parameter may be used to specify an authorization identity.
1524 Specific security properties (as with the
1525 .B sasl-secprops
1526 keyword above) for a SASL bind can be set with the
1527 .B secprops
1528 option. A non default SASL realm can be set with the
1529 .B realm 
1530 option.
1531 .RE
1532 .TP
1533 .B updatedn <dn>
1534 This option is only applicable in a slave
1535 database updated using
1536 .BR slurpd(8). 
1537 It specifies the DN permitted to update (subject to access controls)
1538 the replica (typically, this is the DN
1539 .BR slurpd (8)
1540 binds to update the replica).  Generally, this DN
1541 .I should not
1542 be the same as the
1543 .B rootdn 
1544 used at the master.
1545 .TP
1546 .B updateref <url>
1547 Specify the referral to pass back when
1548 .BR slapd (8)
1549 is asked to modify a replicated local database.
1550 If specified multiple times, each url is provided.
1551
1552 .SH DATABASE-SPECIFIC OPTIONS
1553 Each database may allow specific configuration options; they are
1554 documented separately in the backends' manual pages.
1555 .SH BACKENDS
1556 The following backends can be compiled into slapd.
1557 They are documented in the
1558 .BR slapd-<backend> (5)
1559 manual pages.
1560 .TP
1561 .B bdb
1562 This is the recommended backend for a normal slapd database.
1563 However, it takes more care than with the LDBM backend to configure
1564 it properly.
1565 It uses the Sleepycat Berkeley DB (BDB) package to store data.
1566 .TP
1567 .B ldbm
1568 This is the database backend which is easiest to configure.
1569 However, it does not offer the data durability features of the BDB
1570 backend.
1571 It uses Berkeley DB or GDBM to store data.
1572 .TP
1573 .B dnssrv
1574 This backend is experimental.
1575 It serves up referrals based upon SRV resource records held in the
1576 Domain Name System.
1577 .TP
1578 .B ldap
1579 This backend acts as a proxy to forward incoming requests to another
1580 LDAP server.
1581 .TP
1582 .B meta
1583 This backend performs basic LDAP proxying with respect to a set of
1584 remote LDAP servers. It is an enhancement of the ldap backend. The
1585 proxy cache extension of meta backend provides answering of search
1586 requests from the proxy using results of previously cached requests.
1587 .TP
1588 .B monitor
1589 This backend provides information about the running status of the slapd
1590 daemon.
1591 .TP
1592 .B null
1593 Operations in this backend succeed but do nothing.
1594 .TP
1595 .B passwd
1596 This backend is provided for demonstration purposes only.
1597 It serves up user account information from the system
1598 .BR passwd (5)
1599 file.
1600 .TP
1601 .B perl
1602 This backend embeds a
1603 .BR perl (1)
1604 interpreter into slapd.
1605 It runs Perl subroutines to implement LDAP operations.
1606 .TP
1607 .B relay
1608 This backend redirects LDAP operations to another database
1609 in the same server, based on the naming context of the request.
1610 Its use requires the 
1611 .B rwm
1612 overlay (see
1613 .BR slapo-rwm (5)
1614 for details) to rewrite the naming context of the request.
1615 It is is primarily intended to implement virtual views on databases
1616 that actually store data.
1617 .TP
1618 .B shell
1619 This backend executes external programs to implement LDAP operations.
1620 It is primarily intended to be used in prototypes.
1621 .TP
1622 .B sql
1623 This backend is experimental.
1624 It services LDAP requests from an SQL database.
1625 .TP
1626 .B tcl
1627 This backend is experimental.
1628 It embeds a
1629 .BR Tcl (3tcl)
1630 interpreter into slapd.
1631 It runs Tcl commands to implement LDAP operations.
1632 .SH EXAMPLES
1633 .LP
1634 Here is a short example of a configuration file:
1635 .LP
1636 .RS
1637 .nf
1638 include   SYSCONFDIR/schema/core.schema
1639 pidfile   LOCALSTATEDIR/slapd.pid
1640
1641 # Subtypes of "name" (e.g. "cn" and "ou") with the
1642 # option ";x-hidden" can be searched for/compared,
1643 # but are not shown.  See \fBslapd.access\fP(5).
1644 attributeoptions x-hidden lang-
1645 access to attr=name;x-hidden by * =cs
1646
1647 database  bdb
1648 suffix    "dc=our-domain,dc=com"
1649 # The database directory MUST exist prior to
1650 # running slapd AND should only be accessible
1651 # by the slapd/tools. Mode 0700 recommended.
1652 directory LOCALSTATEDIR/openldap-data
1653 # Indices to maintain
1654 index     objectClass  eq
1655 index     cn,sn,mail   pres,eq,approx,sub
1656
1657 # We serve small clients that do not handle referrals,
1658 # so handle remote lookups on their behalf.
1659 database  ldap
1660 suffix    ""
1661 uri       ldap://ldap.some-server.com/
1662 lastmod   off
1663 .fi
1664 .RE
1665 .LP
1666 "OpenLDAP Administrator's Guide" contains a longer annotated
1667 example of a configuration file.
1668 The original ETCDIR/slapd.conf is another example.
1669 .SH FILES
1670 .TP
1671 ETCDIR/slapd.conf
1672 default slapd configuration file
1673 .SH SEE ALSO
1674 .BR ldap (3),
1675 .BR slapd\-bdb (5),
1676 .BR slapd\-dnssrv (5),
1677 .BR slapd\-ldap (5),
1678 .BR slapd\-ldbm (5),
1679 .BR slapd\-meta (5),
1680 .BR slapd\-monitor (5),
1681 .BR slapd\-null (5),
1682 .BR slapd\-passwd (5),
1683 .BR slapd\-perl (5),
1684 .BR slapd\-relay (5),
1685 .BR slapd\-shell (5),
1686 .BR slapd\-sql (5),
1687 .BR slapd\-tcl (5),
1688 .BR slapd.access (5),
1689 .BR slapd.plugin (5),
1690 .BR slapd.replog (5),
1691 .BR slapd (8),
1692 .BR slapacl (8),
1693 .BR slapadd (8),
1694 .BR slapauth (8),
1695 .BR slapcat (8),
1696 .BR slapdn (8),
1697 .BR slapindex (8),
1698 .BR slappasswd (8),
1699 .BR slaptest (8),
1700 .BR slurpd (8).
1701
1702 Known overlays are documented in
1703 .BR slapo\-lastmod (5),
1704 .BR slapo\-pcache (5),
1705 .BR slapo\-ppolicy (5),
1706 .BR slapo\-refint (5),
1707 .BR slapo\-rwm (5),
1708 .BR slapo\-unique (5).
1709 .LP
1710 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
1711 .SH ACKNOWLEDGEMENTS
1712 .B OpenLDAP
1713 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
1714 .B OpenLDAP
1715 is derived from University of Michigan LDAP 3.3 Release.