]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
Use defined Root DSE attributes.
[openldap] / doc / man / man5 / slapd.conf.5
1 .TH SLAPD.CONF 5 "28 May 2001" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2001 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 tls_2_anon
80 allows Start TLS to force session to anonymous status (see also
81 .B disallow
82 .BR tls_authc ).
83 .TP
84 .B argsfile <filename>
85 The ( absolute ) name of a file that will hold the 
86 .B slapd
87 server's command line options
88 if started without the debugging command line option.
89 .HP
90 .hy 0
91 .B attributetype (\ <oid> [NAME\ <name>] [OBSOLETE]\
92  [DESC\ <description>]\
93  [SUP\ <oid>] [EQUALITY\ <oid>] [ORDERING\ <oid>]\
94  [SUBSTR\ <oid>] [SYNTAX\ <oidlen>] [SINGLE\-VALUE] [COLLECTIVE]\
95  [NO\-USER\-MODIFICATION] [USAGE\ <attributeUsage>]\ )
96 .RS
97 Specify an attribute type using the LDAPv3 syntax defined in RFC 2252.
98 The slapd parser extends the RFC 2252 definition by allowing string
99 forms as well as numeric OIDs to be used for the attribute OID and
100 attribute syntax OID.
101 (See the
102 .B objectidentifier
103 description.) Currently the syntax name parser is case-sensitive.
104 The known syntax names are:
105 .RS
106 .RS
107 .PD 0
108 AttributeTypeDescription Audio Binary BitString Certificate CertificateList
109 CertificatePair DN DeliveryMethod DirectoryString DITContentRuleDescription
110 DITStructureRuleDescription EnhancedGuide FacsimileTelephoneNumber
111 GeneralizedTime Guide IA5String Integer MatchingRuleDescription
112 MatchingRuleUseDescription MailPreference NameAndOptionalUUID
113 NameFormDescription NumericString ObjectClassDescription OID
114 OtherMailbox OctetString PostalAddress ProtocolInformation
115 PresentationAddress PrintableString SupportedAlgorithm TelephoneNumber
116 TeletexTerminalIdentifier TelexNumber UTCTime LDAPSyntaxDescription
117 SubstringAssertion NISnetgrouptriple Bootparameter
118 .PD
119 .RE
120 .RE
121 .RE
122 .TP
123 .B concurrency <integer>
124 Specify a desired level of concurrency.  Provided to the underlying
125 thread system as a hint.  The default is not to provide any hint.
126 .TP
127 .B defaultsearchbase <dn>
128 Specify a default search base to use when client submits a
129 non-base search request with an empty base DN.
130 .TP
131 .B disallow <features>
132 Specify a set of features (separated by white space) to
133 disallow (default none).
134 .B bind_v2
135 disables acceptance of LDAPv2 bind requests.
136 .B bind_anon
137 disables acceptance of anonymous bind requests.
138 .B bind_anon_cred
139 disables anonymous bind creditials are not empty (e.g.
140 when DN is empty).
141 .B bind_anon_dn
142 disables anonymous bind when DN is not empty.
143 .B bind_simple
144 disables simple (bind) authentication.
145 .B bind_krbv4
146 disables Kerberos V4 (bind) authentication.
147 .B tls_authc
148 disables StartTLS if authenticated (see also
149 .B allow
150 .BR tls_2_anon ).
151 .TP
152 .B idletimeout <integer>
153 Specify the number of seconds to wait before forcibly closing
154 an idle client connections.  A idletimeout of 0 disables this
155 feature.  The default is 0.
156 .TP
157 .B include <filename>
158 Read additional configuration information from the given file before
159 continuing with the next line of the current file.
160 .TP
161 .B limits [dn[.{exact|regex}]=]<pattern> <limit> [...]
162 Specify time and size limits based on the distinguished name that
163 initiated an operation.
164 The argument
165 .BR pattern
166 contains the DN the limits are applied to.
167 It is a distinguished name in case of
168 .BR exact
169 match, or an Extended Regex pattern in case of
170 .BR regex
171 match (the default).
172 The currently supported limits are "size" and "time".
173
174 The syntax for time limits is 
175 .BR time[.{soft|hard}]=<integer> ,
176 where 
177 .BR integer
178 is the number of seconds slapd will spend answering a search request.
179 If no time limit is explicitly requested by the client, the 
180 .BR soft
181 limit is used; if the requested time limit exceedes the
182 .BR hard
183 limit, an "Unwilling to perform" is returned.
184 If the
185 .BR hard
186 limit is set to 0 or to the keyword "soft", the soft limit is used 
187 in either case; if it is set to -1 or to the keyword "none", 
188 no hard limit is enforced.
189 Explicit requests for time limits smaller or equal to the
190 .BR hard 
191 limit are honored.
192 If no flag is set, the value is assigned to the 
193 .BR soft 
194 limit, and the
195 .BR hard
196 limit is set to zero, to preserve the original behavior.
197
198 The syntax for size limits is
199 .BR size[.{soft|hard|unchecked}]=<integer> ,
200 where
201 .BR integer
202 is the maximum number of entries slapd will return answering a search 
203 request.
204 If no size limit is explicitly requested by the client, the
205 .BR soft
206 limit is used; if the requested size limit exceedes the
207 .BR hard
208 limit, an "Unwilling to perform" is returned.
209 If the 
210 .BR hard
211 limit is set to 0 or to the keyword "soft", the soft limit is used 
212 in either case; if it is set to -1 or to the keyword "none", 
213 no hard limit is enforced.
214 Explicit requests for size limits smaller or equal to the
215 .BR hard
216 limit are honored.
217 The
218 .BR unchecked
219 flag sets a limit on the number of candidates a search request is allowed
220 to examine.
221 If the selected candidates exceed the 
222 .BR unchecked
223 limit, the search will abort with "Unwilling to perform".
224 If it is set to -1 or to the keyword "none", no limit is applied (the default).
225 If no flag is set, the value is assigned to the
226 .BR soft 
227 limit, and the
228 .BR hard
229 limit is set to zero, to preserve the original behavior.
230
231 In case of no match, the global limits are used.
232 The default values are the same of
233 .BR sizelimit
234 and
235 .BR timelimit ;
236 no limit is set on 
237 .BR unchecked .
238 This feature is currently exploited by the ldbm backend only.
239 .TP
240 .B loglevel <integer>
241 Specify the level at which debugging statements and operation 
242 statistics should be syslogged (currently logged to the
243 .BR syslogd (8) 
244 LOG_LOCAL4 facility).  Log levels are additive, and available levels
245 are:
246 .RS
247 .RS
248 .PD 0
249 .TP
250 .B 1
251 trace function calls
252 .TP
253 .B 2
254 debug packet handling
255 .TP
256 .B 4
257 heavy trace debugging
258 .TP
259 .B 8
260 connection management
261 .TP
262 .B 16
263 print out packets sent and received
264 .TP
265 .B 32
266 search filter processing
267 .TP
268 .B 64
269 configuration file processing
270 .TP
271 .B 128
272 access control list processing
273 .TP
274 .B 256
275 stats log connections/operations/results
276 .TP
277 .B 512
278 stats log entries sent
279 .TP
280 .B 1024
281 print communication with shell backends
282 .TP
283 .B 2048
284 entry parsing
285 .PD
286 .RE
287 .RE
288 .HP
289 .B objectclass ( <oid> [NAME <name>] [DESC <description] [OBSOLETE]\
290  [SUP <oids>] [{ ABSTRACT | STRUCTURAL | AUXILIARY }] [MUST <oids>]\
291  [MAY <oids>] )
292 .RS
293 Specify an objectclass using the LDAPv3 syntax defined in RFC 2252.
294 The slapd parser extends the RFC 2252 definition by allowing string
295 forms as well as numeric OIDs to be used for the object class OID.
296 (See the
297 .B
298 objectidentifier
299 description.)  Object classes are "STRUCTURAL" by default.
300 .RE
301 .TP
302 .B objectidentifier <name> { <oid> | <name>[:<suffix>] }
303 Define a string name that equates to the given OID. The string can be used
304 in place of the numeric OID in objectclass and attribute definitions. The
305 name can also be used with a suffix of the form ":xx" in which case the
306 value "oid.xx" will be used.
307 .TP
308 .B password-hash <hash>
309 The <hash> to use for userPassword generation.  One of
310 .BR {SSHA} ,
311 .BR {SHA} ,
312 .BR {SMD5} ,
313 .BR {MD5} ,
314 and
315 .BR {CRYPT} .
316 The default is
317 .BR {SSHA} .
318 .TP
319 .B password-crypt-salt-format <format>
320 Specify the format of the salt passed to
321 .BR crypt (3)
322 when generating {CRYPT} passwords.  
323 This string needs to be in
324 .BR sprintf (3)
325 format and may include one (and only one) %s conversion.
326 This conversion will be substituted with a string random
327 characters from [A\-Za\-z0\-9./].  For example, "%.2s"
328 provides a two character salt and "$1$%.8s" tells some
329 versions of crypt(3) to use an MD5 algorithm and provides
330 8 random characters of salt.  The default is "%s", which
331 provides 31 characters of salt.
332 .TP
333 .B pidfile <filename>
334 The ( absolute ) name of a file that will hold the 
335 .B slapd
336 server's process ID ( see
337 .BR getpid (2)
338 ) if started without the debugging command line option.
339 .TP
340 .B referral <url>
341 Specify the referral to pass back when
342 .BR slapd (8)
343 cannot find a local database to handle a request.
344 If specified multiple times, each url is provided.
345 .TP
346 .B require <conditions>
347 Specify a set of conditions (separated by white space) to
348 require (default none).
349 The directive may be specified globally and/or per-database.
350 .B bind
351 requires bind operation prior to directory operations.
352 .B LDAPv3
353 requires session to be using LDAP version 3.
354 .B authc
355 requires authentication prior to directory operations.
356 .B SASL
357 requires SASL authentication prior to directory operations.
358 .B strong
359 requires strong authentication prior to directory operations.
360 Currently
361 .B SASL
362 and
363 .B strong
364 conditions are currently same.
365 .B none
366 may be used to require no conditions (useful for clearly globally
367 set conditions within a particular database).
368 .TP
369 .B rootDSEfile <file>
370 Specify the name of an LDIF(5) file containing user defined attributes
371 for the root DSE.  These attributes are returned in addition to the
372 attributes normally produced by slapd.
373 .TP
374 .B sasl-host <fqdn>
375 Used to specify the fully qualified domain name used for SASL processing.
376 .TP
377 .B sasl-realm <realm>
378 Specify SASL realm.  Default is empty.
379 .TP
380 .B sasl-regexp <match> <replace>
381 Used by the SASL authorization mechanism to convert a SASL authenticated 
382 username to an LDAP DN. When an authorization request is received, the SASL 
383 .B USERNAME, REALM, 
384 and
385 .B MECHANISM
386 are taken, when available, and combined into a SASL name of the 
387 form
388 .RS
389 .RS
390 .TP
391 .B uid=<UID>[,cn=<REALM>][,cn=<MECH>],cn=AUTHZ
392
393 .RE
394 This SASL name is then compared against the
395 .B match
396 regular expression, and if the match is successful, the SASL name is
397 replaced with the
398 .B replace
399 string. If there are wildcard strings in the 
400 .B match
401 regular expression that are enclosed in parenthesis, e.g. 
402 .RS
403 .RS
404 .TP
405 .B uid=(.*)\\\\+realm=.*
406
407 .RE
408 .RE
409 then the portion of the SASL name that matched the wildcard will be stored
410 in the numbered placeholder variable $1. If there are other wildcard strings
411 in parenthesis, the matching strings will be in $2, $3, etc. up to $9. The 
412 placeholders can then be used in the 
413 .B replace
414 string, e.g. 
415 .RS
416 .RS
417 .TP
418 .B cn=$1,ou=Accounts,dc=$2,dc=$4. 
419
420 .RE
421 .RE
422 The replaced SASL name can be either a DN or an LDAP URI. If the latter, the slapd
423 server will use the URI to search its own database, and if the search returns 
424 exactly one entry, the SASL name is replaced by the DN of that entry.
425 Multiple 
426 .B sasl-regexp 
427 options can be given in the configuration file to allow for multiple matching 
428 and replacement patterns. The matching patterns are checked in the order they 
429 appear in the file, stopping at the first successful match.
430 .LP
431 .B Caution:
432 Because the plus sign + is a character recognized by the regular expression engine,
433 and it will appear in SASL names that include a REALM, be careful to escape the
434 plus sign with a backslash \\+ to remove the character's special meaning.
435 .RE
436 .TP
437 .B sasl-secprops <properties>
438 Used to specify Cyrus SASL security properties.
439 The
440 .B none
441 flag (without any other properities) causes the flag properites
442 default, "noanonymous,noplain", to be cleared.
443 The
444 .B noplain
445 flag disables mechanisms susceptible to simple passive attacks.
446 The
447 .B noactive
448 flag disables mechanisms susceptible to active attacks.
449 The
450 .B nodict
451 flag disables mechanisms susceptible to passive dictionary attacks.
452 The
453 .B noanonyous
454 flag disables mechanisms which support anonymous login.
455 The
456 .B forwardsec
457 flag require forward secrecy between sessions.
458 The
459 .B passcred
460 require mechanisms which pass client credentials (and allow
461 mechanisms which can pass credentials to do so).
462 The
463 .B minssf=<factor> 
464 property specifies the minimum acceptable
465 .I security strength factor
466 as an integer approximate to effective key length used for
467 encryption.  0 (zero) implies no protection, 1 implies integrity
468 protection only, 56 allows DES or other weak ciphers, 112
469 allows triple DES and other strong ciphers, 128 allows RC4,
470 Blowfish and other modern strong ciphers.  The default is 0.
471 The
472 .B maxssf=<factor> 
473 property specifies the maximum acceptable
474 .I security strength factor
475 as an integer (see minssf description).  The default is INT_MAX.
476 The
477 .B maxbufsize=<size> 
478 property specifies the maximum security layer receive buffer
479 size allowed.  0 disables security layers.  The default is 65536.
480 .TP
481 .B schemacheck { on | off }
482 Turn schema checking on or off. The default is on.
483 .TP
484 .B security <factors>
485 Specify a set of factors (separated by white space) to require.
486 An integer value is associated with each factor and is roughly
487 equivalent of the encryption key length to require.  A value
488 of 112 is equivalent to 3DES, 128 to Blowfish, etc..
489 The directive may be specified globally and/or per-database.
490 .B ssf=<n>
491 specifies the overall security strength factor.
492 .B transport=<n>
493 specifies the transport security strength factor.
494 .B tls=<n>
495 specifies the TLS security strength factor.
496 .B sasl=<n>
497 specifies the SASL security strength factor.
498 .B update_ssf=<n>
499 specifies the overall security strength factor to require for
500 directory updates.
501 .B update_transport=<n>
502 specifies the transport security strength factor to require for
503 directory updates.
504 .B update_tls=<n>
505 specifies the TLS security strength factor to require for
506 directory updates.
507 .B update_sasl=<n>
508 specifies the SASL security strength factor to require for
509 directory updates.
510 Note that the
511 .B transport
512 factor is measure of security provided by the underlying transport,
513 e.g. ldapi:// (and eventually IPSEC).  It is not normally used.
514 .TP
515 .B sizelimit <integer> 
516 .TP
517 .B sizelimit size[.{soft|hard|unchecked}]=<integer> [...]
518 Specify the maximum number of entries to return from a search operation.
519 The default size limit is 500.
520 The second format allows a fine grain setting of the size limits.
521 Extra args can be added on the same line.
522 See
523 .BR limits
524 for an explanation of the different flags.
525 .TP
526 .B sockbuf_max_incoming <integer>
527 Specify the maximum incoming LDAP PDU size for anonymous sessions.
528 The default is 262143.
529 .TP
530 .B sockbuf_max_incoming_auth <integer>
531 Specify the maximum incoming LDAP PDU size for authenticated sessions.
532 The default is 4194303.
533 .TP
534 .B srvtab <filename>
535 Specify the srvtab file in which the kerberos keys necessary for
536 authenticating clients using kerberos can be found. This option is only
537 meaningful if you are using Kerberos authentication.
538 .TP
539 .B threads <integer>
540 Specify the maximum size of the primary thread pool.
541 The default is 32.
542 .TP
543 .B timelimit <integer>
544 .TP
545 .B timelimit time[.{soft|hard}]=<integer> [...]
546 Specify the maximum number of seconds (in real time)
547 .B slapd
548 will spend answering a search request.  The default time limit is 3600.
549 The second format allows a fine grain setting of the time limits.
550 Extra args can be added on the same line.
551 See
552 .BR limits
553 for an explanation of the different flags.
554 .SH TLS OPTIONS
555 If
556 .B slapd
557 is build with support for Transport Layer Security, there are more options
558 you can specify.
559 .TP
560 .B TLSCipherSuite <cipher-suite-spec>
561 Permits configuring what ciphers will be accepted and the preference order.
562 <cipher-suite-spec> should be a cipher specification for OpenSSL.  Example:
563
564 TLSCipherSuite HIGH:MEDIUM:+SSLv2
565
566 To check what ciphers a given spec selects, use:
567
568 openssl ciphers -v <cipher-suite-spec>
569 .TP
570 .B TLSCertificateFile <filename>
571 Specifies the file that contains the
572 .B slapd
573 server certificate.
574 .TP
575 .B TLSCertificateKeyFile <filename>
576 Specifies the file that contains the
577 .B slapd
578 server private key that matches the certificate stored in the
579 .B TLSCertificateFile
580 file.  Currently, the private key must not be protected with a password, so
581 it is of critical importance that it is protected carefully. 
582 .TP
583 .B TLSRandFile <filename>
584 Specifies the file to obtain random bits from when /dev/[u]random
585 is not available.  Generally set to the name of the EGD/PRNGD socket.
586 The environment variable RANDFILE can also be used to specify the filename.
587 .SH GENERAL BACKEND OPTIONS
588 Options in this section only apply to the configuration file section
589 for the specified backend.  They are supported by every
590 type of backend.
591 .TP
592 .B backend <databasetype>
593 Mark the beginning of a backend definition. <databasetype>
594 should be one of
595 .B ldbm,
596 .B shell,
597 or
598 .B passwd
599 depending on which backend will serve the database.
600
601 .SH GENERAL DATABASE OPTIONS
602 Options in this section only apply to the configuration file section
603 for the database in which they are defined.  They are supported by every
604 type of backend.
605 .TP
606 .B database <databasetype>
607 Mark the beginning of a new database instance definition. <databasetype>
608 should be one of
609 .B ldbm,
610 .B shell,
611 or
612 .B passwd
613 depending on which backend will serve the database.
614 .TP
615 .B lastmod on | off
616 Controls whether
617 .B slapd
618 will automatically maintain the 
619 modifiersName, modifyTimestamp, creatorsName, and 
620 createTimestamp attributes for entries.  By default, lastmod is on.
621 .TP
622 .B readonly on | off
623 This option puts the database into "read-only" mode.  Any attempts to 
624 modify the database will return an "unwilling to perform" error.  By
625 default, readonly is off.
626 .HP
627 .B replica host=<hostname>[:port] [tls=yes|critical]
628 .B [suffix=<suffix> [...]]
629 .B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
630 .B [saslmech=<SASL mech>] [secopts=<options>] [realm=<realm>]
631 .B [authcId=<authentication ID>] [authcId=<authentication ID>]
632 .RS
633 Specify a replication site for this database.  Refer to the "OpenLDAP 
634 Administrator's Guide" for detailed information on setting up a replicated
635 .B slapd
636 directory service. Zero or more
637 .B suffix
638 instances can be used to select the subtrees that will be replicated
639 (defaults to all the database). A
640 .B bindmethod
641 of
642 .B simple
643 requires the options
644 .B binddn 
645 and
646 .B credentials  
647 and should only be used when adequate security services 
648 (e.g TLS or IPSEC) are in place. A
649 .B bindmethod 
650 of
651 .B sasl 
652 requires the option
653 .B saslmech. 
654 If the 
655 .B mechanism
656 will use Kerberos, a kerberos instance should be given in 
657 .B authcId.
658 .RE
659 .TP
660 .B replogfile <filename>
661 Specify the name of the replication log file to log changes to.  
662 The replication log is typically written by
663 .BR slapd (8)
664 and read by
665 .BR slurpd (8).
666 See
667 .BR slapd.replog (5)
668 for more information.  The specified file should be located
669 in a directory with limited read/write/execute access as the replication
670 logs may contain sensitive information.
671 .TP
672 .B rootdn <dn>
673 Specify the distinguished name that is not subject to access control 
674 or administrative limit restrictions for operations on this database.
675 This DN may or may not be associated with an entry.  An empty root
676 DN (the default) specifies no root access is to be granted.  It is
677 recommended that the rootdn only be specified when needed (such as
678 when initially populating a database).  If the rootdn is within
679 a namingContext (suffix) of the database, a simple bind password
680 may also be provided using the
681 .B rootpw
682 directive.
683 .TP
684 .B rootpw <password>
685 Specify a password (or hash of the password) for the rootdn.  If
686 the rootdn is not within the namingContext of the database, the
687 provided password is ignored.
688 This option accepts all RFC 2307 userPassword formats known to
689 the server (see 
690 .B password-hash
691 desription) as well as cleartext.
692 .BR slappasswd (8) 
693 may be used to generate a hash of a password.  Cleartext
694 and \fB{CRYPT}\fP passwords are not recommended.  If empty
695 (the default), authentication of the root DN is by other means
696 (e.g. SASL).  Use of SASL is encouraged.
697 .TP
698 .B suffix <dn suffix>
699 Specify the DN suffix of queries that will be passed to this 
700 backend database.  Multiple suffix lines can be given and at least one is 
701 required for each database definition.
702 .TP
703 .B updatedn <dn>
704 This option is only applicable in a slave
705 .B slapd.
706 It specifies the DN allowed to make changes to the replica (typically,
707 this is the DN
708 .BR slurpd (8)
709 binds as when making changes to the replica).
710 .TP
711 .B updateref <url>
712 Specify the referral to pass back when
713 .BR slapd (8)
714 is asked to modify a replicated local database.
715 If specified multiple times, each url is provided.
716 .\" .SH LDBM BACKEND-SPECIFIC OPTIONS
717 .\" Options in this category only apply to the LDBM backend. That is,
718 .\" they must follow "backend ldbm" line and come before any subsequent
719 .\" "backend" or "database" lines.  The LDBM backend is a high-performance
720 .\" database that makes extensive use of indexing and caching to speed
721 .\" data access. 
722 .SH LDBM DATABASE-SPECIFIC OPTIONS
723 Options in this category only apply to the LDBM databases. That is,
724 they must follow "database ldbm" line and come before any subsequent
725 "backend" or "database" lines.
726 .TP
727 .B cachesize <integer>
728 Specify the size in entries of the in-memory cache maintained 
729 by the LDBM backend database instance.  The default is 1000 entries.
730 .TP
731 .B dbcachesize <integer>
732 Specify the size in bytes of the in-memory cache associated 
733 with each open index file. If not supported by the underlying database 
734 method, this option is ignored without comment.  The default is 100000 bytes.
735 .TP
736 .B dbnolocking
737 Specify that no database locking should be performed.  
738 Enabling this option may improve performance at the expense of data security.
739 Do NOT run any slap tools while slapd is running.
740 .TP
741 .B dbnosync
742 Specify that on-disk database contents should not be immediately
743 synchronized with in memory changes.  Enabling this option may improve
744 performance at the expense of data security.
745 .TP
746 .B dbsync <frequency> <maxdelays> <delayinterval>
747 Flush dirty database buffers to disk every
748 .B <seconds>
749 seconds.  Implies
750 .B dbnosync
751 (ie. indvidual updates are no longer written to disk).  It attempts to avoid
752 syncs during periods of peak activity by waiting
753 .B <delayinterval>
754 seconds if the server is busy, repeating this delay up to
755 .B <maxdelays>
756 times before proceeding.  
757 It is an attempt to provide higher write performance with some amount of data
758 security.  Note that it may still be possible to get an inconsistent 
759 database if the underlying engine fills its cache and writes out individual
760 pages and slapd crashes or is killed before the next sync.
761 .B <maxdelays>
762 and
763 .B <delayinterval>
764 are optional and default to
765 .B 12
766 and
767 .B 5
768 respectively, giving a total elapsed delay of 60 seconds before a sync
769 will occur.
770 .B <maxdelays>
771 may be zero, and
772 .B <delayinterval>
773 must be 1 or greater.
774 .TP
775 .B directory <directory>
776 Specify the directory where the LDBM files containing this database and
777 associated indexes live.  A separate directory must be specified for
778 each database.  The default is
779 .BR LOCALSTATEDIR/openldap-ldbm .
780 .TP
781 .B
782 index {<attrlist>|default} [pres,eq,approx,sub,<special>]
783 Specify the indexes to maintain for the given attribute. If only 
784 an <attr> is given, the indices specified for \fBdefault\fR
785 are maintained.  A number of special index parameters may be
786 specified.
787 The index type
788 .B sub
789 can be decomposed into
790 .BR subinitial ,
791 .BR subany ,\ and
792 .B subfinal
793 indices.
794 The special type
795 .B lang
796 may be specified to allow use of this index by language subtypes.
797 The special type
798 .B autolang
799 may be specified to automatically maintain separate indices for each
800 language subtypes.
801 The special type
802 .B subtypes
803 may be specified to allow use of this index by named subtypes.
804 The special type
805 .B autosubtypes
806 may be specified to automatically maintain separate indices for each
807 other subtypes.
808 .TP
809 .B mode <integer>
810 Specify the file protection mode that newly created database 
811 index files should have.  The default is 0600.
812 .SH SHELL DATABASE-SPECIFIC OPTIONS
813 Options in this category only apply to the SHELL backend database. That is,
814 they must follow a "database shell" line and come before any subsequent
815 "backend" or "database" lines.  The Shell backend executes external programs to
816 implement operations, and is designed to make it easy to tie an existing
817 database to the
818 .B slapd
819 front-end.
820 .TP
821 .B bind <pathname>
822 .TP
823 .B unbind <pathname>
824 .TP
825 .B search <pathname>
826 .TP
827 .B compare <pathname>
828 .TP
829 .B modify <pathname>
830 .TP
831 .B modrdn <pathname>
832 .TP
833 .B add <pathname>
834 .TP
835 .B delete <pathname>
836 .TP
837 .B abandon <pathname>
838 These options specify the pathname of the command to execute in response 
839 to the given LDAP operation.
840 .LP
841 Note that you need only supply configuration lines for those commands you
842 want the backend to handle. Operations for which a command is not
843 supplied will be refused with an "unwilling to perform" error.
844 .SH PASSWORD DATABASE-SPECIFIC OPTIONS
845 Options in this category only apply to the PASSWD backend database.
846 That is, they must follow a "database passwd" line and come before any
847 subsequent "backend" or "database" lines.  The PASSWD database serves up the user
848 account information listed in the system
849 .BR passwd (5)
850 file.
851 .TP
852 .B file <filename>
853 Specifies an alternate passwd file to use.  The default is
854 .B /etc/passwd.
855 .SH EXAMPLE
856 "OpenLDAP Administrator's Guide" contains an annotated
857 example of a configuration file.
858 .SH FILES
859 ETCDIR/slapd.conf
860 .SH SEE ALSO
861 .BR ldap (3),
862 .BR slapd.replog (5),
863 .BR locale (5),
864 .BR passwd (5),
865 .BR slapd (8),
866 .BR slapadd (8),
867 .BR slapcat (8),
868 .BR slapindex (8),
869 .BR slappassword (8),
870 .BR slurpd (8),
871 .LP
872 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
873 .SH ACKNOWLEDGEMENTS
874 .B      OpenLDAP
875 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
876 .B      OpenLDAP
877 is derived from University of Michigan LDAP 3.3 Release.