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