]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
ITS#1749 added BDB options
[openldap] / doc / man / man5 / slapd.conf.5
1 .TH SLAPD.CONF 5 "26 January 2002" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2002 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 slapadd (8),
18 .BR slapcat (8),
19 and
20 .BR slapindex (8).
21 .LP
22 The
23 .B slapd.conf
24 file consists of a series of global configuration options that apply to
25 .B slapd
26 as a whole (including all backends), followed by zero or more database
27 backend definitions that contain information specific to a backend
28 instance.
29 .LP
30 The general format of
31 .B slapd.conf
32 is as follows:
33 .LP
34 .nf
35     # comment - these options apply to every database
36     <global configuration options>
37     # first database definition & configuration options
38     database    <backend 1 type>
39     <configuration options specific to backend 1>
40     # subsequent database definitions & configuration options
41     ...
42 .fi
43 .LP
44 As many backend-specific sections as desired may be included.  Global
45 options can be overridden in a backend (for options that appear more
46 than once, the last appearance in the
47 .B slapd.conf
48 file is used).  Blank lines and comment lines beginning with a `#'
49 character are ignored. If a line begins with white space, it is
50 considered a continuation of the previous line.
51 .LP
52 Arguments on configuration lines are separated by white space. If an
53 argument contains white space, the argument should be enclosed in
54 double quotes.  If an argument contains a double quote (`"') or a
55 backslash character (`\\'), the character should be preceded by a
56 backslash character.
57 .LP
58 The specific configuration options available are discussed below in the
59 Global Configuration Options, General Backend Options, General Database
60 Options, LDBM Database-Specific Options,
61 Shell Database-Specific Options, and Password
62 Database-Specific Options sections.  Refer to the "OpenLDAP
63 Administrator's Guide" for more details on the slapd configuration
64 file.
65 .SH GLOBAL CONFIGURATION OPTIONS
66 Options described in this section apply to all backends, unless specifically 
67 overridden in a backend definition. Arguments that should be replaced by 
68 actual text are shown in brackets <>.
69 .TP
70 .B access to <what> [ by <who> <access> <control> ]+
71 Grant access (specified by <access>) to a set of entries and/or
72 attributes (specified by <what>) by one or more requestors (specified
73 by <who>).
74 See the "OpenLDAP's Administrator's Guide" for details.
75 .TP
76 .B allow <features>
77 Specify a set of features (separated by white space) to
78 allow (default none).
79 .B bind_v2
80 allows acceptance of LDAPv2 bind requests.
81 .B bind_anon_cred
82 allows anonymous bind when credentials are not empty (e.g.
83 when DN is empty).
84 .B bind_anon_dn
85 allows unauthenticated (anonymous) bind when DN is not empty.
86 .TP
87 .B argsfile <filename>
88 The ( absolute ) name of a file that will hold the 
89 .B slapd
90 server's command line options
91 if started without the debugging command line option.
92 .HP
93 .hy 0
94 .B attributetype (\ <oid> [NAME\ <name>] [OBSOLETE]\
95  [DESC\ <description>]\
96  [SUP\ <oid>] [EQUALITY\ <oid>] [ORDERING\ <oid>]\
97  [SUBSTR\ <oid>] [SYNTAX\ <oidlen>] [SINGLE\-VALUE] [COLLECTIVE]\
98  [NO\-USER\-MODIFICATION] [USAGE\ <attributeUsage>]\ )
99 .RS
100 Specify an attribute type using the LDAPv3 syntax defined in RFC 2252.
101 The slapd parser extends the RFC 2252 definition by allowing string
102 forms as well as numeric OIDs to be used for the attribute OID and
103 attribute syntax OID.
104 (See the
105 .B objectidentifier
106 description.) Currently the syntax name parser is case-sensitive.
107 The known syntax names are:
108 .RS
109 .RS
110 .PD 0
111 AttributeTypeDescription Audio Binary BitString Certificate CertificateList
112 CertificatePair DN DeliveryMethod DirectoryString DITContentRuleDescription
113 DITStructureRuleDescription EnhancedGuide FacsimileTelephoneNumber
114 GeneralizedTime Guide IA5String Integer MatchingRuleDescription
115 MatchingRuleUseDescription MailPreference NameAndOptionalUUID
116 NameFormDescription NumericString ObjectClassDescription OID
117 OtherMailbox OctetString PostalAddress ProtocolInformation
118 PresentationAddress PrintableString SupportedAlgorithm TelephoneNumber
119 TeletexTerminalIdentifier TelexNumber UTCTime LDAPSyntaxDescription
120 SubstringAssertion NISnetgrouptriple Bootparameter
121 .PD
122 .RE
123 .RE
124 .RE
125 .TP
126 .B concurrency <integer>
127 Specify a desired level of concurrency.  Provided to the underlying
128 thread system as a hint.  The default is not to provide any hint.
129 .TP
130 .B defaultsearchbase <dn>
131 Specify a default search base to use when client submits a
132 non-base search request with an empty base DN.
133 .TP
134 .B disallow <features>
135 Specify a set of features (separated by white space) to
136 disallow (default none).
137 .B bind_anon
138 disables acceptance of anonymous bind requests.
139 .B bind_simple
140 disables simple (bind) authentication.
141 .B bind_krbv4
142 disables Kerberos V4 (bind) authentication.
143 .B tls_2_anon
144 disables Start TLS from forcing session to anonymous status (see also
145 .BR tls_authc ).
146 .B tls_authc
147 disables StartTLS if authenticated (see also
148 .BR tls_2_anon ).
149 .TP
150 .B idletimeout <integer>
151 Specify the number of seconds to wait before forcibly closing
152 an idle client connection.  A idletimeout of 0 disables this
153 feature.  The default is 0.
154 .TP
155 .B include <filename>
156 Read additional configuration information from the given file before
157 continuing with the next line of the current file.
158 .TP
159 .B limits <who> <limit> [<limit> [...]]
160 Specify time and size limits based on who initiated an operation.
161 The argument
162 .B who
163 can be any of
164 .RS
165 .RS
166 .TP
167 anonymous | users | [dn[.<style>]=]<pattern>
168
169 .RE
170 with
171 .RS
172 .TP
173 <style> ::= exact | base | one | subtree | children | regex | anonymous
174
175 .RE
176 .B Anonymous
177 is hit when a search is performed without prior binding;
178 .B users
179 is hit when a search is performed by a successfully bound user;
180 otherwise a
181 .B regex
182 dn pattern is assumed unless otherwise specified by qualifying 
183 the (optional) key string
184 .B dn
185 with 
186 .B exact
187 or
188 .B base
189 (which are synonims), to require an exact match; with
190 .BR one, 
191 to require exactly one level of depth match; with
192 .BR subtree,
193 to allow any level of depth match, including the exact match; with
194 .BR children,
195 to allow any level of depth match, not including the exact match;
196 .BR regex
197 explicitly requires the (default) match based on regular expression
198 pattern, as detailed in
199 .BR regex(7).
200 Finally,
201 .B anonymous
202 matches unbound operations; the 
203 .B pattern
204 field is ignored.
205 The same behavior is obtained by using the 
206 .B anonymous
207 form of the
208 .B who
209 clause.
210
211 The currently supported limits are 
212 .B size
213 and 
214 .BR time.
215
216 The syntax for time limits is 
217 .BR time[.{soft|hard}]=<integer> ,
218 where 
219 .BR integer
220 is the number of seconds slapd will spend answering a search request.
221 If no time limit is explicitly requested by the client, the 
222 .BR soft
223 limit is used; if the requested time limit exceedes the
224 .BR hard
225 limit, an "Unwilling to perform" is returned.
226 If the
227 .BR hard
228 limit is set to 0 or to the keyword "soft", the soft limit is used 
229 in either case; if it is set to -1 or to the keyword "none", 
230 no hard limit is enforced.
231 Explicit requests for time limits smaller or equal to the
232 .BR hard 
233 limit are honored.
234 If no flag is set, the value is assigned to the 
235 .BR soft 
236 limit, and the
237 .BR hard
238 limit is set to zero, to preserve the original behavior.
239
240 The syntax for size limits is
241 .BR size[.{soft|hard|unchecked}]=<integer> ,
242 where
243 .BR integer
244 is the maximum number of entries slapd will return answering a search 
245 request.
246 If no size limit is explicitly requested by the client, the
247 .BR soft
248 limit is used; if the requested size limit exceedes the
249 .BR hard
250 limit, an "Unwilling to perform" is returned.
251 If the 
252 .BR hard
253 limit is set to 0 or to the keyword "soft", the soft limit is used 
254 in either case; if it is set to -1 or to the keyword "none", 
255 no hard limit is enforced.
256 Explicit requests for size limits smaller or equal to the
257 .BR hard
258 limit are honored.
259 The
260 .BR unchecked
261 flag sets a limit on the number of candidates a search request is allowed
262 to examine.
263 If the selected candidates exceed the 
264 .BR unchecked
265 limit, the search will abort with "Unwilling to perform".
266 If it is set to -1 or to the keyword "none", no limit is applied (the default).
267 If no flag is set, the value is assigned to the
268 .BR soft 
269 limit, and the
270 .BR hard
271 limit is set to zero, to preserve the original behavior.
272
273 In case of no match, the global limits are used.
274 The default values are the same of
275 .BR sizelimit
276 and
277 .BR timelimit ;
278 no limit is set on 
279 .BR unchecked .
280 .RE
281 .TP
282 .B loglevel <integer>
283 Specify the level at which debugging statements and operation 
284 statistics should be syslogged (currently logged to the
285 .BR syslogd (8) 
286 LOG_LOCAL4 facility).  Log levels are additive, and available levels
287 are:
288 .RS
289 .RS
290 .PD 0
291 .TP
292 .B 1
293 trace function calls
294 .TP
295 .B 2
296 debug packet handling
297 .TP
298 .B 4
299 heavy trace debugging
300 .TP
301 .B 8
302 connection management
303 .TP
304 .B 16
305 print out packets sent and received
306 .TP
307 .B 32
308 search filter processing
309 .TP
310 .B 64
311 configuration file processing
312 .TP
313 .B 128
314 access control list processing
315 .TP
316 .B 256
317 stats log connections/operations/results
318 .TP
319 .B 512
320 stats log entries sent
321 .TP
322 .B 1024
323 print communication with shell backends
324 .TP
325 .B 2048
326 entry parsing
327 .PD
328 .RE
329 .RE
330 .HP
331 .B objectclass ( <oid> [NAME <name>] [DESC <description] [OBSOLETE]\
332  [SUP <oids>] [{ ABSTRACT | STRUCTURAL | AUXILIARY }] [MUST <oids>]\
333  [MAY <oids>] )
334 .RS
335 Specify an objectclass using the LDAPv3 syntax defined in RFC 2252.
336 The slapd parser extends the RFC 2252 definition by allowing string
337 forms as well as numeric OIDs to be used for the object class OID.
338 (See the
339 .B
340 objectidentifier
341 description.)  Object classes are "STRUCTURAL" by default.
342 .RE
343 .TP
344 .B objectidentifier <name> { <oid> | <name>[:<suffix>] }
345 Define a string name that equates to the given OID. The string can be used
346 in place of the numeric OID in objectclass and attribute definitions. The
347 name can also be used with a suffix of the form ":xx" in which case the
348 value "oid.xx" will be used.
349 .TP
350 .B password-hash <hash>
351 This option sets the hash to be used in generation of user
352 passwords, stored in userPassword, during processing of
353 LDAP Password Modify Extended Operations (RFC 3052).
354 The <hash> must be one of
355 .BR {SSHA} ,
356 .BR {SHA} ,
357 .BR {SMD5} ,
358 .BR {MD5} ,
359 and
360 .BR {CRYPT} .
361 The default is
362 .BR {SSHA} .
363
364 Note that this option does not alter the normal user applications
365 handling of userPassword during LDAP Add, Modify, or other LDAP operations.
366 .TP
367 .B password\-crypt\-salt\-format <format>
368 Specify the format of the salt passed to
369 .BR crypt (3)
370 when generating {CRYPT} passwords (see
371 .BR password\-hash )
372 during processing of LDAP Password Modify Extended Operations (RFC 3062).
373
374 This string needs to be in
375 .BR sprintf (3)
376 format and may include one (and only one) %s conversion.
377 This conversion will be substituted with a string random
378 characters from [A\-Za\-z0\-9./].  For example, "%.2s"
379 provides a two character salt and "$1$%.8s" tells some
380 versions of crypt(3) to use an MD5 algorithm and provides
381 8 random characters of salt.  The default is "%s", which
382 provides 31 characters of salt.
383 .TP
384 .B pidfile <filename>
385 The ( absolute ) name of a file that will hold the 
386 .B slapd
387 server's process ID ( see
388 .BR getpid (2)
389 ) if started without the debugging command line option.
390 .TP
391 .B referral <url>
392 Specify the referral to pass back when
393 .BR slapd (8)
394 cannot find a local database to handle a request.
395 If specified multiple times, each url is provided.
396 .TP
397 .B require <conditions>
398 Specify a set of conditions (separated by white space) to
399 require (default none).
400 The directive may be specified globally and/or per-database.
401 .B bind
402 requires bind operation prior to directory operations.
403 .B LDAPv3
404 requires session to be using LDAP version 3.
405 .B authc
406 requires authentication prior to directory operations.
407 .B SASL
408 requires SASL authentication prior to directory operations.
409 .B strong
410 requires strong authentication prior to directory operations.
411 The
412 .B SASL
413 and
414 .B strong
415 conditions are currently same.
416 .B none
417 may be used to require no conditions (useful for clearly globally
418 set conditions within a particular database).
419 .TP
420 .B reverse-lookup on | off
421 Enable/disable client name reverse lookup (default is 
422 .BR on 
423 if compiled with --enable-rlookups).
424 .TP
425 .B rootDSE <file>
426 Specify the name of an LDIF(5) file containing user defined attributes
427 for the root DSE.  These attributes are returned in addition to the
428 attributes normally produced by slapd.
429 .TP
430 .B sasl-host <fqdn>
431 Used to specify the fully qualified domain name used for SASL processing.
432 .TP
433 .B sasl-realm <realm>
434 Specify SASL realm.  Default is empty.
435 .TP
436 .B sasl-regexp <match> <replace>
437 Used by the SASL authorization mechanism to convert a SASL authenticated 
438 username to an LDAP DN. When an authorization request is received, the SASL 
439 .B USERNAME, REALM, 
440 and
441 .B MECHANISM
442 are taken, when available, and combined into a SASL name of the 
443 form
444 .RS
445 .RS
446 .TP
447 .B uid=<UID>[,cn=<REALM>][,cn=<MECH>],cn=AUTHZ
448
449 .RE
450 This SASL name is then compared against the
451 .B match
452 regular expression, and if the match is successful, the SASL name is
453 replaced with the
454 .B replace
455 string. If there are wildcard strings in the 
456 .B match
457 regular expression that are enclosed in parenthesis, e.g. 
458 .RS
459 .RS
460 .TP
461 .B uid=(.*)\\\\+realm=.*
462
463 .RE
464 .RE
465 then the portion of the SASL name that matched the wildcard will be stored
466 in the numbered placeholder variable $1. If there are other wildcard strings
467 in parenthesis, the matching strings will be in $2, $3, etc. up to $9. The 
468 placeholders can then be used in the 
469 .B replace
470 string, e.g. 
471 .RS
472 .RS
473 .TP
474 .B cn=$1,ou=Accounts,dc=$2,dc=$4. 
475
476 .RE
477 .RE
478 The replaced SASL name can be either a DN or an LDAP URI. If the latter, the slapd
479 server will use the URI to search its own database, and if the search returns 
480 exactly one entry, the SASL name is replaced by the DN of that entry.
481 Multiple 
482 .B sasl-regexp 
483 options can be given in the configuration file to allow for multiple matching 
484 and replacement patterns. The matching patterns are checked in the order they 
485 appear in the file, stopping at the first successful match.
486
487 .B Caution:
488 Because the plus sign + is a character recognized by the regular expression engine,
489 and it will appear in SASL names that include a REALM, be careful to escape the
490 plus sign with a backslash \\+ to remove the character's special meaning.
491 .RE
492 .TP
493 .B sasl-secprops <properties>
494 Used to specify Cyrus SASL security properties.
495 The
496 .B none
497 flag (without any other properities) causes the flag properites
498 default, "noanonymous,noplain", to be cleared.
499 The
500 .B noplain
501 flag disables mechanisms susceptible to simple passive attacks.
502 The
503 .B noactive
504 flag disables mechanisms susceptible to active attacks.
505 The
506 .B nodict
507 flag disables mechanisms susceptible to passive dictionary attacks.
508 The
509 .B noanonyous
510 flag disables mechanisms which support anonymous login.
511 The
512 .B forwardsec
513 flag require forward secrecy between sessions.
514 The
515 .B passcred
516 require mechanisms which pass client credentials (and allow
517 mechanisms which can pass credentials to do so).
518 The
519 .B minssf=<factor> 
520 property specifies the minimum acceptable
521 .I security strength factor
522 as an integer approximate to effective key length used for
523 encryption.  0 (zero) implies no protection, 1 implies integrity
524 protection only, 56 allows DES or other weak ciphers, 112
525 allows triple DES and other strong ciphers, 128 allows RC4,
526 Blowfish and other modern strong ciphers.  The default is 0.
527 The
528 .B maxssf=<factor> 
529 property specifies the maximum acceptable
530 .I security strength factor
531 as an integer (see minssf description).  The default is INT_MAX.
532 The
533 .B maxbufsize=<size> 
534 property specifies the maximum security layer receive buffer
535 size allowed.  0 disables security layers.  The default is 65536.
536 .TP
537 .B security <factors>
538 Specify a set of factors (separated by white space) to require.
539 An integer value is associated with each factor and is roughly
540 equivalent of the encryption key length to require.  A value
541 of 112 is equivalent to 3DES, 128 to Blowfish, etc..
542 The directive may be specified globally and/or per-database.
543 .B ssf=<n>
544 specifies the overall security strength factor.
545 .B transport=<n>
546 specifies the transport security strength factor.
547 .B tls=<n>
548 specifies the TLS security strength factor.
549 .B sasl=<n>
550 specifies the SASL security strength factor.
551 .B update_ssf=<n>
552 specifies the overall security strength factor to require for
553 directory updates.
554 .B update_transport=<n>
555 specifies the transport security strength factor to require for
556 directory updates.
557 .B update_tls=<n>
558 specifies the TLS security strength factor to require for
559 directory updates.
560 .B update_sasl=<n>
561 specifies the SASL security strength factor to require for
562 directory updates.
563 Note that the
564 .B transport
565 factor is measure of security provided by the underlying transport,
566 e.g. ldapi:// (and eventually IPSEC).  It is not normally used.
567 .TP
568 .B sizelimit <integer> 
569 .TP
570 .B sizelimit size[.{soft|hard|unchecked}]=<integer> [...]
571 Specify the maximum number of entries to return from a search operation.
572 The default size limit is 500.
573 The second format allows a fine grain setting of the size limits.
574 Extra args can be added on the same line.
575 See
576 .BR limits
577 for an explanation of the different flags.
578 .TP
579 .B sockbuf_max_incoming <integer>
580 Specify the maximum incoming LDAP PDU size for anonymous sessions.
581 The default is 262143.
582 .TP
583 .B sockbuf_max_incoming_auth <integer>
584 Specify the maximum incoming LDAP PDU size for authenticated sessions.
585 The default is 4194303.
586 .TP
587 .B srvtab <filename>
588 Specify the srvtab file in which the kerberos keys necessary for
589 authenticating clients using kerberos can be found. This option is only
590 meaningful if you are using Kerberos authentication.
591 .TP
592 .B threads <integer>
593 Specify the maximum size of the primary thread pool.
594 The default is 32.
595 .TP
596 .B timelimit <integer>
597 .TP
598 .B timelimit time[.{soft|hard}]=<integer> [...]
599 Specify the maximum number of seconds (in real time)
600 .B slapd
601 will spend answering a search request.  The default time limit is 3600.
602 The second format allows a fine grain setting of the time limits.
603 Extra args can be added on the same line.
604 See
605 .BR limits
606 for an explanation of the different flags.
607 .SH TLS OPTIONS
608 If
609 .B slapd
610 is built with support for Transport Layer Security, there are more options
611 you can specify.
612 .TP
613 .B TLSCipherSuite <cipher-suite-spec>
614 Permits configuring what ciphers will be accepted and the preference order.
615 <cipher-suite-spec> should be a cipher specification for OpenSSL.  Example:
616
617 TLSCipherSuite HIGH:MEDIUM:+SSLv2
618
619 To check what ciphers a given spec selects, use:
620
621 openssl ciphers -v <cipher-suite-spec>
622 .TP
623 .B TLSCACertificateFile <filename>
624 Specifies the file that contains certificates for all of the Certificate
625 Authorities that
626 .B slapd
627 will recognize.
628 .TP
629 .B TLSCertificateFile <filename>
630 Specifies the file that contains the
631 .B slapd
632 server certificate.
633 .TP
634 .B TLSCertificateKeyFile <filename>
635 Specifies the file that contains the
636 .B slapd
637 server private key that matches the certificate stored in the
638 .B TLSCertificateFile
639 file.  Currently, the private key must not be protected with a password, so
640 it is of critical importance that it is protected carefully. 
641 .TP
642 .B TLSRandFile <filename>
643 Specifies the file to obtain random bits from when /dev/[u]random
644 is not available.  Generally set to the name of the EGD/PRNGD socket.
645 The environment variable RANDFILE can also be used to specify the filename.
646 .TP
647 .B TLSVerifyClient <level>
648 Specifies what checks to perform on client certificates in an
649 incoming TLS session, if any.
650 The
651 .B <level>
652 can be specified as one of the following keywords:
653 .RS
654 .TP
655 .B never
656 This is the default.
657 .B slapd
658 will not ask the client for a certificate.
659 .TP
660 .B allow
661 The client certificate is requested.  If no certificate is provided,
662 the session proceeds normally.  If a bad certificate is provided,
663 it will be ignored and the session proceeds normally.
664 .TP
665 .B try
666 The client certificate is requested.  If no certificate is provided,
667 the session proceeds normally.  If a bad certificate is provided,
668 the session is immediately terminated.
669 .TP
670 .B demand | hard | true
671 These keywords are all equivalent, for compatibility reasons.
672 The client certificate is requested.  If no certificate is provided,
673 or a bad certificate is provided, the session is immediately terminated.
674
675 Note that a valid client certificate is required in order to use the
676 SASL EXTERNAL authentication mechanism with a TLS session.  As such,
677 a non-default
678 .B TLSVerifyClient
679 setting must be chosen to enable SASL EXTERNAL authentication.
680 .RE
681 .SH GENERAL BACKEND OPTIONS
682 Options in this section only apply to the configuration file section
683 for the specified backend.  They are supported by every
684 type of backend.
685 .TP
686 .B backend <databasetype>
687 Mark the beginning of a backend definition. <databasetype>
688 should be one of
689 .B bdb,
690 .B dnssrv,
691 .B ldap,
692 .B ldbm,
693 .B meta,
694 .B monitor,
695 .B null,
696 .B passwd,
697 .B perl,
698 .B shell,
699 .B sql,
700 or
701 .B tcl,
702 depending on which backend will serve the database.
703
704 .SH GENERAL DATABASE OPTIONS
705 Options in this section only apply to the configuration file section
706 for the database in which they are defined.  They are supported by every
707 type of backend.
708 .TP
709 .B database <databasetype>
710 Mark the beginning of a new database instance definition. <databasetype>
711 should be one of
712 .B bdb,
713 .B dnssrv,
714 .B ldap,
715 .B ldbm,
716 .B meta,
717 .B monitor,
718 .B null,
719 .B passwd,
720 .B perl,
721 .B shell,
722 .B sql,
723 or
724 .B tcl,
725 depending on which backend will serve the database.
726 .TP
727 .B lastmod on | off
728 Controls whether
729 .B slapd
730 will automatically maintain the 
731 modifiersName, modifyTimestamp, creatorsName, and 
732 createTimestamp attributes for entries.  By default, lastmod is on.
733 .TP
734 .B readonly on | off
735 This option puts the database into "read-only" mode.  Any attempts to 
736 modify the database will return an "unwilling to perform" error.  By
737 default, readonly is off.
738 .HP
739 .B replica host=<hostname>[:port] [tls=yes|critical]
740 .B [suffix=<suffix> [...]]
741 .B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
742 .B [saslmech=<SASL mech>] [secopts=<options>] [realm=<realm>]
743 .B [authcId=<authentication ID>] [authcId=<authentication ID>]
744 .B [attr[!]=<attr list>]
745 .RS
746 Specify a replication site for this database.  Refer to the "OpenLDAP 
747 Administrator's Guide" for detailed information on setting up a replicated
748 .B slapd
749 directory service. Zero or more
750 .B suffix
751 instances can be used to select the subtrees that will be replicated
752 (defaults to all the database). A
753 .B bindmethod
754 of
755 .B simple
756 requires the options
757 .B binddn 
758 and
759 .B credentials  
760 and should only be used when adequate security services 
761 (e.g TLS or IPSEC) are in place. A
762 .B bindmethod 
763 of
764 .B sasl 
765 requires the option
766 .B saslmech. 
767 If the 
768 .B mechanism
769 will use Kerberos, a kerberos instance should be given in 
770 .B authcId.
771 An
772 .B attr list
773 can be given after the 
774 .B attr
775 keyword to allow the selective replication of the listed attributes only;
776 if the optional 
777 .B !
778 mark is used, the list is considered exclusive, i.e. the listed attributes
779 are not replicated.
780 If an objectClass is listed, all the related attributes
781 are (are not) replicated.
782 .RE
783 .TP
784 .B replogfile <filename>
785 Specify the name of the replication log file to log changes to.  
786 The replication log is typically written by
787 .BR slapd (8)
788 and read by
789 .BR slurpd (8).
790 See
791 .BR slapd.replog (5)
792 for more information.  The specified file should be located
793 in a directory with limited read/write/execute access as the replication
794 logs may contain sensitive information.
795 .TP
796 .B rootdn <dn>
797 Specify the distinguished name that is not subject to access control 
798 or administrative limit restrictions for operations on this database.
799 This DN may or may not be associated with an entry.  An empty root
800 DN (the default) specifies no root access is to be granted.  It is
801 recommended that the rootdn only be specified when needed (such as
802 when initially populating a database).  If the rootdn is within
803 a namingContext (suffix) of the database, a simple bind password
804 may also be provided using the
805 .B rootpw
806 directive.
807 .TP
808 .B rootpw <password>
809 Specify a password (or hash of the password) for the rootdn.  If
810 the rootdn is not within the namingContext of the database, the
811 provided password is ignored.
812 This option accepts all RFC 2307 userPassword formats known to
813 the server (see 
814 .B password-hash
815 desription) as well as cleartext.
816 .BR slappasswd (8) 
817 may be used to generate a hash of a password.  Cleartext
818 and \fB{CRYPT}\fP passwords are not recommended.  If empty
819 (the default), authentication of the root DN is by other means
820 (e.g. SASL).  Use of SASL is encouraged.
821 .TP
822 .B suffix <dn suffix>
823 Specify the DN suffix of queries that will be passed to this 
824 backend database.  Multiple suffix lines can be given and at least one is 
825 required for each database definition.
826 .TP
827 .B subordinate
828 Specify that the current backend database is a subordinate of another
829 backend database. A subordinate database may have only one suffix. This
830 option may be used to glue multiple databases into a single namingContext.
831 If the suffix of the current database is within the namingContext of a
832 superior database, searches against the superior database will be
833 propagated to the subordinate as well. All of the databases
834 associated with a single namingContext should have identical rootdns.
835 Behavior of other LDAP operations is unaffected by this setting. In
836 particular, it is not possible to use moddn to move an entry from
837 one subordinate to another subordinate within the namingContext.
838 .TP
839 .B updatedn <dn>
840 This option is only applicable in a slave
841 .B slapd.
842 It specifies the DN allowed to make changes to the replica (typically,
843 this is the DN
844 .BR slurpd (8)
845 binds as when making changes to the replica).
846 .TP
847 .B updateref <url>
848 Specify the referral to pass back when
849 .BR slapd (8)
850 is asked to modify a replicated local database.
851 If specified multiple times, each url is provided.
852 .\" .SH LDBM BACKEND-SPECIFIC OPTIONS
853 .\" Options in this category only apply to the LDBM backend. That is,
854 .\" they must follow "backend ldbm" line and come before any subsequent
855 .\" "backend" or "database" lines.  The LDBM backend is a high-performance
856 .\" database that makes extensive use of indexing and caching to speed
857 .\" data access. 
858 .SH BDB DATABASE-SPECIFIC OPTIONS
859 Options in this category only apply to the BDB databases. That is,
860 they must follow "database bdb" line and come before any subsequent
861 "backend" or "database" lines.
862 .TP
863 .B cachesize <integer>
864 Specify the size in entries of the in-memory cache maintained 
865 by the BDB backend database instance.  The default is 1000 entries.
866 .TP
867 .B checkpoint <kbyte> <min>
868 Specify the frequency for checkpointing the database transaction log.
869 A checkpoint operation flushes the database buffers to disk and writes
870 a checkpoint record in the log. The checkpoint will occur if either
871 <kbyte> data has been written or <min> minutes have passed since the
872 last checkpoint. Both arguments default to zero, in which case they are ignored.
873 See the Berkeley DB reference guide for more details.
874 .TP
875 .B dbnosync
876 Specify that on-disk database contents should not be immediately
877 synchronized with in memory changes.  Enabling this option may improve
878 performance at the expense of data security.
879 .TP
880 .B directory <directory>
881 Specify the directory where the BDB files containing this database and
882 associated indexes live.  A separate directory must be specified for
883 each database.  The default is
884 .BR LOCALSTATEDIR/openldap-data .
885 .TP
886 .B dirtyread
887 Allow reads of modified but not yet committed data. Usually transactions
888 are isolated to prevent other operations from accessing uncommitted data.
889 This option may improve performance, but may also return inconsistent
890 results if the data comes from a transaction that is later aborted. In
891 this case, the modified data is discarded and a subsequent search will
892 return a different result.
893 .TP
894 .B
895 index {<attrlist>|default} [pres,eq,approx,sub,<special>]
896 See the description for LDBM.
897 .TP
898 .B lockdetect {oldest|youngest|fewest|random|default}
899 Specify which transaction to abort when a deadlock is detected. The
900 default is the same as
901 .BR random .
902 .TP
903 .B mode <integer>
904 Specify the file protection mode that newly created database 
905 index files should have.  The default is 0600.
906
907 .SH LDBM DATABASE-SPECIFIC OPTIONS
908 Options in this category only apply to the LDBM databases. That is,
909 they must follow "database ldbm" line and come before any subsequent
910 "backend" or "database" lines.
911 .TP
912 .B cachesize <integer>
913 Specify the size in entries of the in-memory cache maintained 
914 by the LDBM backend database instance.  The default is 1000 entries.
915 .TP
916 .B dbcachesize <integer>
917 Specify the size in bytes of the in-memory cache associated 
918 with each open index file. If not supported by the underlying database 
919 method, this option is ignored without comment.  The default is 100000 bytes.
920 .TP
921 .B dbnolocking
922 Specify that no database locking should be performed.  
923 Enabling this option may improve performance at the expense of data security.
924 Do NOT run any slap tools while slapd is running.
925 .TP
926 .B dbnosync
927 Specify that on-disk database contents should not be immediately
928 synchronized with in memory changes.  Enabling this option may improve
929 performance at the expense of data security.
930 .TP
931 .B dbsync <frequency> <maxdelays> <delayinterval>
932 Flush dirty database buffers to disk every
933 .B <seconds>
934 seconds.  Implies
935 .B dbnosync
936 (ie. indvidual updates are no longer written to disk).  It attempts to avoid
937 syncs during periods of peak activity by waiting
938 .B <delayinterval>
939 seconds if the server is busy, repeating this delay up to
940 .B <maxdelays>
941 times before proceeding.  
942 It is an attempt to provide higher write performance with some amount of data
943 security.  Note that it may still be possible to get an inconsistent 
944 database if the underlying engine fills its cache and writes out individual
945 pages and slapd crashes or is killed before the next sync.
946 .B <maxdelays>
947 and
948 .B <delayinterval>
949 are optional and default to
950 .B 12
951 and
952 .B 5
953 respectively, giving a total elapsed delay of 60 seconds before a sync
954 will occur.
955 .B <maxdelays>
956 may be zero, and
957 .B <delayinterval>
958 must be 1 or greater.
959 .TP
960 .B directory <directory>
961 Specify the directory where the LDBM files containing this database and
962 associated indexes live.  A separate directory must be specified for
963 each database.  The default is
964 .BR LOCALSTATEDIR/openldap-data .
965 .TP
966 .B
967 index {<attrlist>|default} [pres,eq,approx,sub,<special>]
968 Specify the indexes to maintain for the given attribute (or
969 list of attributes).  Some attributes only support a subset
970 of indexes.  If only an <attr> is given, the indices specified
971 for \fBdefault\fR are maintained.  Note that setting a default
972 does not imply that all attributes will be indexed.
973
974 A number of special index parameters may be
975 specified.
976 The index type
977 .B sub
978 can be decomposed into
979 .BR subinitial ,
980 .BR subany ,\ and
981 .B subfinal
982 indices.
983 The special type
984 .B nolang
985 may be specified to disallow use of this index by language subtypes.
986 The special type
987 .B nosubtypes
988 may be specified to disallow use of this index by named subtypes.
989 Note: changing index settings requires rebuilding indices, see
990 .BR slapindex (8).
991 .TP
992 .B mode <integer>
993 Specify the file protection mode that newly created database 
994 index files should have.  The default is 0600.
995 .SH SHELL DATABASE-SPECIFIC OPTIONS
996 Options in this category only apply to the SHELL backend database. That is,
997 they must follow a "database shell" line and come before any subsequent
998 "backend" or "database" lines.  The Shell backend executes external programs to
999 implement operations, and is designed to make it easy to tie an existing
1000 database to the
1001 .B slapd
1002 front-end.
1003 .TP
1004 .B bind <pathname>
1005 .TP
1006 .B unbind <pathname>
1007 .TP
1008 .B search <pathname>
1009 .TP
1010 .B compare <pathname>
1011 .TP
1012 .B modify <pathname>
1013 .TP
1014 .B modrdn <pathname>
1015 .TP
1016 .B add <pathname>
1017 .TP
1018 .B delete <pathname>
1019 .TP
1020 .B abandon <pathname>
1021 These options specify the pathname of the command to execute in response 
1022 to the given LDAP operation.
1023
1024 Note that you need only supply configuration lines for those commands you
1025 want the backend to handle. Operations for which a command is not
1026 supplied will be refused with an "unwilling to perform" error.
1027 .SH PASSWORD DATABASE-SPECIFIC OPTIONS
1028 Options in this category only apply to the PASSWD backend database.
1029 That is, they must follow a "database passwd" line and come before any
1030 subsequent "backend" or "database" lines.  The PASSWD database serves up the user
1031 account information listed in the system
1032 .BR passwd (5)
1033 file.
1034 .TP
1035 .B file <filename>
1036 Specifies an alternate passwd file to use.  The default is
1037 .B /etc/passwd.
1038 .SH OTHER DATABASE-SPECIFIC OPTIONS
1039 Other databases may allow specific configuration options; they will be
1040 documented separately since most of these databases are very specific
1041 or experimental.
1042 .SH EXAMPLE
1043 "OpenLDAP Administrator's Guide" contains an annotated
1044 example of a configuration file.
1045 .SH FILES
1046 ETCDIR/slapd.conf
1047 .SH SEE ALSO
1048 .BR ldap (3),
1049 .BR slapd.replog (5),
1050 .BR slapd.access (5),
1051 .BR locale (5),
1052 .BR passwd (5),
1053 .BR slapd (8),
1054 .BR slapadd (8),
1055 .BR slapcat (8),
1056 .BR slapindex (8),
1057 .BR slappassword (8),
1058 .BR slurpd (8),
1059 .LP
1060 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
1061 .SH ACKNOWLEDGEMENTS
1062 .B      OpenLDAP
1063 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
1064 .B      OpenLDAP
1065 is derived from University of Michigan LDAP 3.3 Release.