]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
mention new tools
[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 0 or to the keyword 
1074 .IR soft ,
1075 the soft limit is used in either case; if it is set to 
1076 .I -1 
1077 or to the keyword 
1078 .IR none , 
1079 no hard limit is enforced.
1080 Explicit requests for time limits smaller or equal to the
1081 .BR hard 
1082 limit are honored.
1083 If no flag is set, the value is assigned to the 
1084 .BR soft 
1085 limit, and the
1086 .BR hard
1087 limit is set to zero, to preserve the original behavior.
1088
1089 The syntax for size limits is
1090 .BR size[.{soft|hard|unchecked}]=<integer> ,
1091 where
1092 .BR integer
1093 is the maximum number of entries slapd will return answering a search 
1094 request.
1095 If no size limit is explicitly requested by the client, the
1096 .BR soft
1097 limit is used; if the requested size limit exceeds the
1098 .BR hard
1099 limit, an 
1100 .I \"Administrative limit exceeded\"
1101 error is returned.
1102 If the 
1103 .BR hard
1104 limit is set to 0 or to the keyword 
1105 .IR soft , 
1106 the soft limit is used in either case; if it is set to 
1107 .I -1 
1108 or to the keyword
1109 .IR none , 
1110 no hard limit is enforced.
1111 Explicit requests for size limits smaller or equal to the
1112 .BR hard
1113 limit are honored.
1114 The
1115 .BR unchecked
1116 flag sets a limit on the number of candidates a search request is allowed
1117 to examine.
1118 If the selected candidates exceed the 
1119 .BR unchecked
1120 limit, the search will abort with 
1121 .IR \"Unwilling to perform\" .
1122 If it is set to
1123 .I -1 
1124 or to the keyword 
1125 .IR none , 
1126 no limit is applied (the default).
1127 If it is set to
1128 .IR disable ,
1129 the search is not even performed; this can be used to disallow searches
1130 for a specific set of users.
1131 If no flag is set, the value is assigned to the
1132 .BR soft 
1133 limit, and the
1134 .BR hard
1135 limit is set to zero, to preserve the original behavior.
1136
1137 In case of no match, the global limits are used.
1138 The default values are the same of
1139 .B sizelimit
1140 and
1141 .BR timelimit ;
1142 no limit is set on 
1143 .BR unchecked .
1144
1145 If 
1146 .B pagedResults
1147 control is requested, the 
1148 .B hard
1149 size limit is used by default, because the request of a specific page size
1150 is considered as an explicit request for a limitation on the number
1151 of entries to be returned.
1152 However, the size limit applies to the total count of entries returned within
1153 the search, and not to a single page.
1154 Additional size limits may be enforced; the syntax is
1155 .BR size.pr={<integer>|noEstimate|none} ,
1156 where
1157 .B integer
1158 is the max page size if no explicit limit is set; the keyword
1159 .I noEstimate
1160 inhibits the server to return an estimate of the total number
1161 of entries that will be returned; the keyword
1162 .I none
1163 indicates that no limit is applied to the pagedResults control page size.
1164 The syntax
1165 .B size.prtotal={<integer>|none|disabled}
1166 allows to set a limit on the total number of entries that a pagedResults
1167 control allows to return.
1168 By default it is set to the 
1169 .B hard
1170 limit.
1171 When set, 
1172 .B integer
1173 is the max number of entries that the whole search with pagedResults control
1174 can return.
1175 Use 
1176 .B none
1177 to allow unlimited number of entries to be returned, i.e. to use 
1178 pagedResults as a means to allow clients to circumvent size limitations 
1179 on regular searches; the keyword
1180 .I disabled
1181 disables the control, i.e. no paged results can be returned.
1182 Note that the total number of entries returned when the pagedResults control 
1183 is requested cannot exceed the 
1184 .B hard 
1185 size limit of regular searches unless extended by the
1186 .B prtotal
1187 switch.
1188 .RE
1189 .TP
1190 .B maxderefdepth <depth>
1191 Specifies the maximum number of aliases to dereference when trying to
1192 resolve an entry, used to avoid infinite alias loops. The default is 1.
1193 .TP
1194 .B overlay <overlay-name>
1195 Add the specified overlay to this database. An overlay is a piece of
1196 code that intercepts database operations in order to extend or change
1197 them. Overlays are pushed onto
1198 a stack over the database, and so they will execute in the reverse
1199 of the order in which they were configured and the database itself
1200 will receive control last of all.
1201 .TP
1202 .B readonly on | off
1203 This option puts the database into "read-only" mode.  Any attempts to 
1204 modify the database will return an "unwilling to perform" error.  By
1205 default, readonly is off.
1206 .HP
1207 .hy 0
1208 .B replica uri=ldap[s]://<hostname>[:port]|host=<hostname>[:port] 
1209 .B [starttls=yes|critical]
1210 .B [suffix=<suffix> [...]]
1211 .B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
1212 .B [saslmech=<SASL mech>] [secprops=<properties>] [realm=<realm>]
1213 .B [authcId=<authentication ID>] [authzId=<authorization ID>]
1214 .B [attr[!]=<attr list>]
1215 .RS
1216 Specify a replication site for this database.  Refer to the "OpenLDAP 
1217 Administrator's Guide" for detailed information on setting up a replicated
1218 .B slapd
1219 directory service. Zero or more
1220 .B suffix
1221 instances can be used to select the subtrees that will be replicated
1222 (defaults to all the database). 
1223 .B host
1224 is deprecated in favor of the
1225 .B uri
1226 option.
1227 .B uri
1228 allows the replica LDAP server to be specified as an LDAP URI. 
1229 A
1230 .B bindmethod
1231 of
1232 .B simple
1233 requires the options
1234 .B binddn 
1235 and
1236 .B credentials  
1237 and should only be used when adequate security services 
1238 (e.g TLS or IPSEC) are in place. A
1239 .B bindmethod 
1240 of
1241 .B sasl 
1242 requires the option
1243 .B saslmech. 
1244 Specific security properties (as with the
1245 .B sasl-secprops
1246 keyword above) for a SASL bind can be set with the
1247 .B secprops
1248 option. A non-default SASL realm can be set with the
1249 .B realm
1250 option.
1251 If the 
1252 .B mechanism
1253 will use Kerberos, a kerberos instance should be given in 
1254 .B authcId.
1255 An
1256 .B attr list
1257 can be given after the 
1258 .B attr
1259 keyword to allow the selective replication of the listed attributes only;
1260 if the optional 
1261 .B !
1262 mark is used, the list is considered exclusive, i.e. the listed attributes
1263 are not replicated.
1264 If an objectClass is listed, all the related attributes
1265 are (are not) replicated.
1266 .RE
1267 .TP
1268 .B replogfile <filename>
1269 Specify the name of the replication log file to log changes to.  
1270 The replication log is typically written by
1271 .BR slapd (8)
1272 and read by
1273 .BR slurpd (8).
1274 See
1275 .BR slapd.replog (5)
1276 for more information.  The specified file should be located
1277 in a directory with limited read/write/execute access as the replication
1278 logs may contain sensitive information.
1279 .TP
1280 .B restrict <oplist>
1281 Specify a whitespace separated list of operations that are restricted.
1282 If defined inside a database specification, restrictions apply only
1283 to that database, otherwise they are global.
1284 Operations can be any of 
1285 .BR add ,
1286 .BR bind ,
1287 .BR compare ,
1288 .BR delete ,
1289 .BR extended[=<OID>] ,
1290 .BR modify ,
1291 .BR rename ,
1292 .BR search ,
1293 or the special pseudo-operations
1294 .B read
1295 and
1296 .BR write ,
1297 which respectively summarize read and write operations.
1298 The use of 
1299 .I restrict write
1300 is equivalent to 
1301 .I readonly on
1302 (see above).
1303 The 
1304 .B extended
1305 keyword allows to indicate the OID of the specific operation
1306 to be restricted.
1307 .TP
1308 .B rootdn <dn>
1309 Specify the distinguished name that is not subject to access control 
1310 or administrative limit restrictions for operations on this database.
1311 This DN may or may not be associated with an entry.  An empty root
1312 DN (the default) specifies no root access is to be granted.  It is
1313 recommended that the rootdn only be specified when needed (such as
1314 when initially populating a database).  If the rootdn is within
1315 a namingContext (suffix) of the database, a simple bind password
1316 may also be provided using the
1317 .B rootpw
1318 directive.
1319 .TP
1320 .B rootpw <password>
1321 Specify a password (or hash of the password) for the rootdn.  The
1322 password can only be set if the rootdn is within the namingContext
1323 (suffix) of the database.
1324 This option accepts all RFC 2307 userPassword formats known to
1325 the server (see 
1326 .B password-hash
1327 description) as well as cleartext.
1328 .BR slappasswd (8) 
1329 may be used to generate a hash of a password.  Cleartext
1330 and \fB{CRYPT}\fP passwords are not recommended.  If empty
1331 (the default), authentication of the root DN is by other means
1332 (e.g. SASL).  Use of SASL is encouraged.
1333 .TP
1334 .B suffix <dn suffix>
1335 Specify the DN suffix of queries that will be passed to this 
1336 backend database.  Multiple suffix lines can be given and at least one is 
1337 required for each database definition.
1338 If the suffix of one database is "inside" that of another, the database
1339 with the inner suffix must come first in the configuration file.
1340 .TP
1341 .B subordinate
1342 Specify that the current backend database is a subordinate of another
1343 backend database. A subordinate database may have only one suffix. This
1344 option may be used to glue multiple databases into a single namingContext.
1345 If the suffix of the current database is within the namingContext of a
1346 superior database, searches against the superior database will be
1347 propagated to the subordinate as well. All of the databases
1348 associated with a single namingContext should have identical rootdns.
1349 Behavior of other LDAP operations is unaffected by this setting. In
1350 particular, it is not possible to use moddn to move an entry from
1351 one subordinate to another subordinate within the namingContext.
1352 .HP
1353 .hy 0
1354 .B syncrepl rid=<replica ID>
1355 .B provider=ldap[s]://<hostname>[:port]
1356 .B [type=refreshOnly|refreshAndPersist]
1357 .B [interval=dd:hh:mm:ss]
1358 .B [searchbase=<base DN>]
1359 .B [filter=<filter str>]
1360 .B [scope=sub|one|base]
1361 .B [attrs=<attr list>]
1362 .B [attrsonly]
1363 .B [sizelimit=<limit>]
1364 .B [timelimit=<limit>]
1365 .B [schemachecking=on|off]
1366 .B [updatedn=<dn>]
1367 .B [bindmethod=simple|sasl]
1368 .B [binddn=<dn>]
1369 .B [saslmech=<mech>]
1370 .B [authcid=<identity>]
1371 .B [authzid=<identity>]
1372 .B [credentials=<passwd>]
1373 .B [realm=<realm>]
1374 .B [secprops=<properties>]
1375 .RS
1376 Specify the current database as a replica which is kept up-to-date with the 
1377 master content by establishing the current
1378 .BR slapd (8)
1379 as a replication consumer site running a
1380 .B syncrepl
1381 replication engine.
1382 The replica content is kept synchronized to the master content using
1383 the LDAP Content Synchronization protocol. Refer to the
1384 "OpenLDAP Administrator's Guide" for detailed information on
1385 setting up a replicated
1386 .B slapd
1387 directory service using the 
1388 .B syncrepl
1389 replication engine.
1390 .B rid
1391 identifies the current
1392 .B syncrepl
1393 directive within the replication consumer site.
1394 It is a non-negative integer having no more than three digits.
1395 .B provider
1396 specifies the replication provider site containing the master content
1397 as an LDAP URI. If <port> is not given, the standard LDAP port number
1398 (389 or 636) is used. The content of the
1399 .B syncrepl
1400 replica is defined using a search
1401 specification as its result set. The consumer
1402 .B slapd
1403 will send search requests to the provider
1404 .B slapd
1405 according to the search specification. The search specification includes
1406 .B searchbase, scope, filter, attrs, attrsonly, sizelimit,
1407 and
1408 .B timelimit
1409 parameters as in the normal search specification.
1410 The search specification for the LDAP Content Synchronization operation
1411 has the same value syntax and the same default values as in the
1412 .BR ldapsearch (1)
1413 client search tool.
1414 The LDAP Content Synchronization protocol has two operation types.
1415 In the
1416 .B refreshOnly
1417 operation, the next synchronization search operation
1418 is periodically rescheduled at an interval time (specified by 
1419 .B interval
1420 parameter; 1 day by default)
1421 after each synchronization operation finishes.
1422 In the
1423 .B refreshAndPersist
1424 operation, a synchronization search remains persistent in the provider slapd.
1425 Further updates to the master replica will generate
1426 .B searchResultEntry
1427 to the consumer slapd as the search responses to the persistent
1428 synchronization search. If the connection is lost, the consumer will
1429 attempt to reconnect at an interval time (specified by
1430 .B interval
1431 parameter; 60 seconds by default) until the session is re-established.
1432 The schema checking can be enforced at the LDAP Sync
1433 consumer site by turning on the
1434 .B schemachecking
1435 parameter. The default is off.
1436 The
1437 .B updatedn
1438 parameter specifies the DN in the consumer site
1439 which is allowed to make changes to the replica.
1440 The DN should have read/write access to the replica database.
1441 Generally, this DN
1442 .I should not
1443 be the same as the
1444 .B rootdn
1445 of the master database.
1446 A
1447 .B bindmethod
1448 of 
1449 .B simple
1450 requires the options 
1451 .B binddn
1452 and 
1453 .B credentials
1454 and should only be used when adequate security services
1455 (e.g. TLS or IPSEC) are in place.
1456 A
1457 .B bindmethod
1458 of
1459 .B sasl
1460 requires the option
1461 .B saslmech.
1462 Depending on the mechanism, an authentication identity and/or
1463 credentials can be specified using
1464 .B authcid
1465 and
1466 .B credentials.
1467 The
1468 .B authzid
1469 parameter may be used to specify an authorization identity.
1470 Specific security properties (as with the
1471 .B sasl-secprops
1472 keyword above) for a SASL bind can be set with the
1473 .B secprops
1474 option. A non default SASL realm can be set with the
1475 .B realm 
1476 option.
1477 .RE
1478 .TP
1479 .B updatedn <dn>
1480 This option is only applicable in a slave
1481 database updated using
1482 .BR slurpd(8). 
1483 It specifies the DN permitted to update (subject to access controls)
1484 the replica (typically, this is the DN
1485 .BR slurpd (8)
1486 binds to update the replica).  Generally, this DN
1487 .I should not
1488 be the same as the
1489 .B rootdn 
1490 used at the master.
1491 .TP
1492 .B updateref <url>
1493 Specify the referral to pass back when
1494 .BR slapd (8)
1495 is asked to modify a replicated local database.
1496 If specified multiple times, each url is provided.
1497
1498 .SH DATABASE-SPECIFIC OPTIONS
1499 Each database may allow specific configuration options; they are
1500 documented separately in the backends' manual pages.
1501 .SH BACKENDS
1502 The following backends can be compiled into slapd.
1503 They are documented in the
1504 .BR slapd-<backend> (5)
1505 manual pages.
1506 .TP
1507 .B bdb
1508 This is the recommended backend for a normal slapd database.
1509 However, it takes more care than with the LDBM backend to configure
1510 it properly.
1511 It uses the Sleepycat Berkeley DB (BDB) package to store data.
1512 .TP
1513 .B ldbm
1514 This is the database backend which is easiest to configure.
1515 However, it does not offer the data durability features of the BDB
1516 backend.
1517 It uses Berkeley DB or GDBM to store data.
1518 .TP
1519 .B dnssrv
1520 This backend is experimental.
1521 It serves up referrals based upon SRV resource records held in the
1522 Domain Name System.
1523 .TP
1524 .B ldap
1525 This backend acts as a proxy to forward incoming requests to another
1526 LDAP server.
1527 .TP
1528 .B meta
1529 This backend performs basic LDAP proxying with respect to a set of
1530 remote LDAP servers. It is an enhancement of the ldap backend. The
1531 proxy cache extension of meta backend provides answering of search
1532 requests from the proxy using results of previously cached requests.
1533 .TP
1534 .B monitor
1535 This backend provides information about the running status of the slapd
1536 daemon.
1537 .TP
1538 .B null
1539 Operations in this backend succeed but do nothing.
1540 .TP
1541 .B passwd
1542 This backend is provided for demonstration purposes only.
1543 It serves up user account information from the system
1544 .BR passwd (5)
1545 file.
1546 .TP
1547 .B perl
1548 This backend embeds a
1549 .BR perl (1)
1550 interpreter into slapd.
1551 It runs Perl subroutines to implement LDAP operations.
1552 .TP
1553 .B shell
1554 This backend executes external programs to implement LDAP operations.
1555 It is is primarily intended to be used in prototypes.
1556 .TP
1557 .B sql
1558 This backend is experimental.
1559 It services LDAP requests from an SQL database.
1560 .TP
1561 .B tcl
1562 This backend is experimental.
1563 It embeds a
1564 .BR Tcl (3tcl)
1565 interpreter into slapd.
1566 It runs Tcl commands to implement LDAP operations.
1567 .SH EXAMPLES
1568 .LP
1569 Here is a short example of a configuration file:
1570 .LP
1571 .RS
1572 .nf
1573 include   SYSCONFDIR/schema/core.schema
1574 pidfile   LOCALSTATEDIR/slapd.pid
1575
1576 # Subtypes of "name" (e.g. "cn" and "ou") with the
1577 # option ";x-hidden" can be searched for/compared,
1578 # but are not shown.  See \fBslapd.access\fP(5).
1579 attributeoptions x-hidden lang-
1580 access to attr=name;x-hidden by * =cs
1581
1582 database  bdb
1583 suffix    "dc=our-domain,dc=com"
1584 # The database directory MUST exist prior to
1585 # running slapd AND should only be accessible
1586 # by the slapd/tools. Mode 0700 recommended.
1587 directory LOCALSTATEDIR/openldap-data
1588 # Indices to maintain
1589 index     objectClass  eq
1590 index     cn,sn,mail   pres,eq,approx,sub
1591
1592 # We serve small clients that do not handle referrals,
1593 # so handle remote lookups on their behalf.
1594 database  ldap
1595 suffix    ""
1596 uri       ldap://ldap.some-server.com/
1597 lastmod   off
1598 .fi
1599 .RE
1600 .LP
1601 "OpenLDAP Administrator's Guide" contains a longer annotated
1602 example of a configuration file.
1603 The original ETCDIR/slapd.conf is another example.
1604 .SH FILES
1605 .TP
1606 ETCDIR/slapd.conf
1607 default slapd configuration file
1608 .SH SEE ALSO
1609 .BR ldap (3),
1610 .BR slapd-bdb (5),
1611 .BR slapd-dnssrv (5),
1612 .BR slapd-ldap (5),
1613 .BR slapd-ldbm (5),
1614 .BR slapd-meta (5),
1615 .BR slapd-monitor (5),
1616 .BR slapd-null (5),
1617 .BR slapd-passwd (5),
1618 .BR slapd-perl (5),
1619 .BR slapd-shell (5),
1620 .BR slapd-sql (5),
1621 .BR slapd-tcl (5),
1622 .BR slapd.access (5),
1623 .BR slapd.plugin (5),
1624 .BR slapd.replog (5),
1625 .BR slapd (8),
1626 .BR slapacl (8),
1627 .BR slapadd (8),
1628 .BR slapauth (8),
1629 .BR slapcat (8),
1630 .BR slapdn (8),
1631 .BR slapindex (8),
1632 .BR slappasswd (8),
1633 .BR slaptest (8),
1634 .BR slurpd (8),
1635 .LP
1636 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
1637 .SH ACKNOWLEDGEMENTS
1638 .B OpenLDAP
1639 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
1640 .B OpenLDAP
1641 is derived from University of Michigan LDAP 3.3 Release.