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