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