]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
syncrepl retry parameter
[openldap] / doc / man / man5 / slapd.conf.5
1 .TH SLAPD.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2004 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .\" $OpenLDAP$
5 .SH NAME
6 slapd.conf \- configuration file for slapd, the stand-alone LDAP daemon
7 .SH SYNOPSIS
8 ETCDIR/slapd.conf
9 .SH DESCRIPTION
10 The file
11 .B ETCDIR/slapd.conf
12 contains configuration information for the
13 .BR slapd (8)
14 daemon.  This configuration file is also used by the
15 .BR slurpd (8)
16 replication daemon and by the SLAPD tools
17 .BR 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).
49 .LP
50 If a line begins with white space, it is considered a continuation
51 of the previous line.  Blank lines and comment lines beginning with
52 a `#' character are ignored.  (Note: continuation lines are unwrapped
53 before comment processing is applied.)
54 .LP
55 Arguments on configuration lines are separated by white space. If an
56 argument contains white space, the argument should be enclosed in
57 double quotes.  If an argument contains a double quote (`"') or a
58 backslash character (`\\'), the character should be preceded by a
59 backslash character.
60 .LP
61 The specific configuration options available are discussed below in the
62 Global Configuration Options, General Backend Options, and General Database
63 Options.  Backend-specific options are discussed in the
64 .B slapd-<backend>(5)
65 manual pages.  Refer to the "OpenLDAP Administrator's Guide" for more
66 details on the slapd configuration file.
67 .SH GLOBAL CONFIGURATION OPTIONS
68 Options described in this section apply to all backends, unless specifically 
69 overridden in a backend definition. Arguments that should be replaced by 
70 actual text are shown in brackets <>.
71 .TP
72 .B access to <what> "[ by <who> <access> <control> ]+"
73 Grant access (specified by <access>) to a set of entries and/or
74 attributes (specified by <what>) by one or more requestors (specified
75 by <who>).
76 See
77 .BR slapd.access (5)
78 and the "OpenLDAP's Administrator's Guide" for details.
79 .TP
80 .B allow <features>
81 Specify a set of features (separated by white space) to
82 allow (default none).
83 .B bind_v2
84 allows acceptance of LDAPv2 bind requests.  Note that
85 .BR slapd (8)
86 does not truly implement LDAPv2 (RFC 1777), now Historic (RFC 3494).
87 .B bind_anon_cred
88 allows anonymous bind when credentials are not empty (e.g.
89 when DN is empty).
90 .B bind_anon_dn
91 allows unauthenticated (anonymous) bind when DN is not empty.
92 .B update_anon
93 allow unauthenticated (anonymous) update operations to be processed
94 (subject to access controls and other administrative limits).
95 .TP
96 .B argsfile <filename>
97 The ( absolute ) name of a file that will hold the 
98 .B slapd
99 server's command line options
100 if started without the debugging command line option.
101 .TP
102 .B attributeoptions [option-name]...
103 Define tagging attribute options or option tag/range prefixes.
104 Options must not end with `-', prefixes must end with `-'.
105 The `lang-' prefix is predefined.
106 If you use the
107 .B attributeoptions
108 directive, `lang-' will no longer be defined and you must specify it
109 explicitly if you want it defined.
110
111 An attribute description with a tagging option is a subtype of that
112 attribute description without the option.
113 Except for that, options defined this way have no special semantics.
114 Prefixes defined this way work like the `lang-' options:
115 They define a prefix for tagging options starting with the prefix.
116 That is, if you define the prefix `x-foo-', you can use the option
117 `x-foo-bar'.
118 Furthermore, in a search or compare, a prefix or range name (with
119 a trailing `-') matches all options starting with that name, as well
120 as the option with the range name sans the trailing `-'.
121 That is, `x-foo-bar-' matches `x-foo-bar' and `x-foo-bar-baz'.
122
123 RFC 2251 reserves options beginning with `x-' for private experiments.
124 Other options should be registered with IANA, see RFC 3383 section 3.4.
125 OpenLDAP also has the `binary' option built in, but this is a transfer
126 option, not a tagging option.
127 .HP
128 .hy 0
129 .B attributetype "(\ <oid>\
130  [NAME\ <name>]\
131  [DESC\ <description>]\
132  [OBSOLETE]\
133  [SUP\ <oid>]\
134  [EQUALITY\ <oid>]\
135  [ORDERING\ <oid>]\
136  [SUBSTR\ <oid>]\
137  [SYNTAX\ <oidlen>]\
138  [SINGLE\-VALUE]\
139  [COLLECTIVE]\
140  [NO\-USER\-MODIFICATION]\
141  [USAGE\ <attributeUsage>]\ )"
142 .RS
143 Specify an attribute type using the LDAPv3 syntax defined in RFC 2252.
144 The slapd parser extends the RFC 2252 definition by allowing string
145 forms as well as numeric OIDs to be used for the attribute OID and
146 attribute syntax OID.
147 (See the
148 .B objectidentifier
149 description.) 
150 .RE
151 .TP
152 .B concurrency <integer>
153 Specify a desired level of concurrency.  Provided to the underlying
154 thread system as a hint.  The default is not to provide any hint.
155 .TP
156 .B conn_max_pending <integer>
157 Specify the maximum number of pending requests for an anonymous session.
158 If requests are submitted faster than the server can process them, they
159 will be queued up to this limit. If the limit is exceeded, the session
160 is closed. The default is 100.
161 .TP
162 .B conn_max_pending_auth <integer>
163 Specify the maximum number of pending requests for an authenticated session.
164 The default is 1000.
165 .\"-- NEW_LOGGING option --
166 .\".TP
167 .\".B debug <subsys> <level>
168 .\"Specify a logging level for a particular subsystem.  The subsystems include
169 .\".B global
170 .\"a global level for all subsystems,
171 .\".B acl
172 .\"the ACL engine,
173 .\".B backend
174 .\"the backend databases,
175 .\".B cache
176 .\"the entry cache manager,
177 .\".B config
178 .\"the config file reader,
179 .\".B connection
180 .\"the connection manager,
181 .\".B cyrus
182 .\"the Cyrus SASL library interface,
183 .\".B filter
184 .\"the search filter processor,
185 .\".B getdn
186 .\"the DN normalization library,
187 .\".B index
188 .\"the database indexer,
189 .\".B liblber
190 .\"the ASN.1 BER library,
191 .\".B module
192 .\"the dynamic module loader,
193 .\".B operation
194 .\"the LDAP operation processors,
195 .\".B sasl
196 .\"the SASL authentication subsystem,
197 .\".B schema
198 .\"the schema processor, and
199 .\".B tls
200 .\"the TLS library interface. This is not an exhaustive list; there are many
201 .\"other subsystems and more are added over time.
202 .\"
203 .\"The levels are, in order of decreasing priority:
204 .\".B emergency, alert, critical, error, warning, notice, information, entry,
205 .\".B args, results, detail1, detail2
206 .\"An integer may be used instead, with 0 corresponding to
207 .\".B emergency
208 .\"up to 11 for
209 .\".BR detail2 .
210 .\"The
211 .\".B entry
212 .\"level logs function entry points,
213 .\".B args
214 .\"adds function call parameters, and
215 .\".B results
216 .\"adds the function results to the logs.
217 .\"The
218 .\".B detail1
219 .\"and
220 .\".B detail2
221 .\"levels add even more low level detail from individual functions.
222 .TP
223 .B defaultsearchbase <dn>
224 Specify a default search base to use when client submits a
225 non-base search request with an empty base DN.
226 .TP
227 .B disallow <features>
228 Specify a set of features (separated by white space) to
229 disallow (default none).
230 .B bind_anon
231 disables acceptance of anonymous bind requests.
232 .B bind_simple
233 disables simple (bind) authentication.
234 .B bind_krbv4
235 disables Kerberos V4 (bind) authentication.
236 .B tls_2_anon
237 disables Start TLS from forcing session to anonymous status (see also
238 .BR tls_authc ).
239 .B tls_authc
240 disables StartTLS if authenticated (see also
241 .BR tls_2_anon ).
242 .HP
243 .hy 0
244 .B ditcontentrule "(\ <oid>\
245  [NAME\ <name>]\
246  [DESC\ <description>]\
247  [OBSOLETE]\
248  [AUX\ <oids>]\
249  [MUST\ <oids>]\
250  [MAY\ <oids>]\
251  [NOT\ <oids>]\ )"
252 .RS
253 Specify an DIT Content Rule using the LDAPv3 syntax defined in RFC 2252.
254 The slapd parser extends the RFC 2252 definition by allowing string
255 forms as well as numeric OIDs to be used for the attribute OID and
256 attribute syntax OID.
257 (See the
258 .B objectidentifier
259 description.) 
260 .RE
261 .TP
262 .B gentlehup { on | off }
263 A SIGHUP signal will only cause a 'gentle' shutdown-attempt:
264 .B Slapd
265 will stop listening for new connections, but will not close the
266 connections to the current clients.  Future write operations return
267 unwilling-to-perform, though.  Slapd terminates when all clients
268 have closed their connections (if they ever do), or \- as before \-
269 if it receives a SIGTERM signal.  This can be useful if you wish to
270 terminate the server and start a new
271 .B slapd
272 server
273 .B with another database,
274 without disrupting the currently active clients.
275 The default is off.  You may wish to use
276 .B idletimeout
277 along with this option.
278 .TP
279 .B idletimeout <integer>
280 Specify the number of seconds to wait before forcibly closing
281 an idle client connection.  A idletimeout of 0 disables this
282 feature.  The default is 0.
283 .TP
284 .B include <filename>
285 Read additional configuration information from the given file before
286 continuing with the next line of the current file.
287 .\"-- NEW_LOGGING option --
288 .\".TP
289 .\".B logfile <filename>
290 .\"Specify a file for recording debug log messages. By default these messages
291 .\"only go to stderr and are not recorded anywhere else. Specifying a logfile
292 .\"copies messages to both stderr and the logfile.
293 .TP
294 .B loglevel <integer>
295 Specify the level at which debugging statements and operation 
296 statistics should be syslogged (currently logged to the
297 .BR syslogd (8) 
298 LOG_LOCAL4 facility).  Log levels are additive, and available levels
299 are:
300 .RS
301 .RS
302 .PD 0
303 .TP
304 .B 1
305 trace function calls
306 .TP
307 .B 2
308 debug packet handling
309 .TP
310 .B 4
311 heavy trace debugging
312 .TP
313 .B 8
314 connection management
315 .TP
316 .B 16
317 print out packets sent and received
318 .TP
319 .B 32
320 search filter processing
321 .TP
322 .B 64
323 configuration file processing
324 .TP
325 .B 128
326 access control list processing
327 .TP
328 .B 256
329 stats log connections/operations/results
330 .TP
331 .B 512
332 stats log entries sent
333 .TP
334 .B 1024
335 print communication with shell backends
336 .TP
337 .B 2048
338 entry parsing
339 .PD
340 .RE
341 .RE
342 .TP
343 .B moduleload <filename>
344 Specify the name of a dynamically loadable module to load. The filename
345 may be an absolute path name or a simple filename. Non-absolute names
346 are searched for in the directories specified by the
347 .B modulepath
348 option. This option and the
349 .B modulepath
350 option are only usable if slapd was compiled with --enable-modules.
351 .TP
352 .B modulepath <pathspec>
353 Specify a list of directories to search for loadable modules. Typically
354 the path is colon-separated but this depends on the operating system.
355 .HP
356 .hy 0
357 .B objectclass "(\ <oid>\
358  [NAME\ <name>]\
359  [DESC\ <description]\
360  [OBSOLETE]\
361  [SUP\ <oids>]\
362  [{ ABSTRACT | STRUCTURAL | AUXILIARY }]\
363  [MUST\ <oids>] [MAY\ <oids>] )"
364 .RS
365 Specify an objectclass using the LDAPv3 syntax defined in RFC 2252.
366 The slapd parser extends the RFC 2252 definition by allowing string
367 forms as well as numeric OIDs to be used for the object class OID.
368 (See the
369 .B
370 objectidentifier
371 description.)  Object classes are "STRUCTURAL" by default.
372 .RE
373 .TP
374 .B objectidentifier <name> "{ <oid> | <name>[:<suffix>] }"
375 Define a string name that equates to the given OID. The string can be used
376 in place of the numeric OID in objectclass and attribute definitions. The
377 name can also be used with a suffix of the form ":xx" in which case the
378 value "oid.xx" will be used.
379 .TP
380 .B password-hash <hash> [<hash>...]
381 This option configures one or more hashes to be used in generation of user
382 passwords stored in the userPassword attribute during processing of
383 LDAP Password Modify Extended Operations (RFC 3062).
384 The <hash> must be one of
385 .BR {SSHA} ,
386 .BR {SHA} ,
387 .BR {SMD5} ,
388 .BR {MD5} ,
389 .BR {CRYPT} ,
390 and
391 .BR {CLEARTEXT} .
392 The default is
393 .BR {SSHA} .
394
395 .B {SHA}
396 and
397 .B {SSHA}
398 use the SHA-1 algorithm (FIPS 160-1), the latter with a seed.
399
400 .B {MD5}
401 and
402 .B {SMD5}
403 use the MD5 algorithm (RFC 1321), the latter with a seed.
404
405 .B {CRYPT}
406 uses the
407 .BR crypt (3).
408
409 .B {CLEARTEXT}
410 indicates that the new password should be
411 added to userPassword as clear text.
412
413 Note that this option does not alter the normal user applications
414 handling of userPassword during LDAP Add, Modify, or other LDAP operations.
415 .TP
416 .B password\-crypt\-salt\-format <format>
417 Specify the format of the salt passed to
418 .BR crypt (3)
419 when generating {CRYPT} passwords (see
420 .BR password\-hash )
421 during processing of LDAP Password Modify Extended Operations (RFC 3062).
422
423 This string needs to be in
424 .BR sprintf (3)
425 format and may include one (and only one) %s conversion.
426 This conversion will be substituted with a string random
427 characters from [A\-Za\-z0\-9./].  For example, "%.2s"
428 provides a two character salt and "$1$%.8s" tells some
429 versions of crypt(3) to use an MD5 algorithm and provides
430 8 random characters of salt.  The default is "%s", which
431 provides 31 characters of salt.
432 .TP
433 .B pidfile <filename>
434 The ( absolute ) name of a file that will hold the 
435 .B slapd
436 server's process ID ( see
437 .BR getpid (2)
438 ) if started without the debugging command line option.
439 .TP
440 .B referral <url>
441 Specify the referral to pass back when
442 .BR slapd (8)
443 cannot find a local database to handle a request.
444 If specified multiple times, each url is provided.
445 .TP
446 .B replica-argsfile
447 The ( absolute ) name of a file that will hold the 
448 .B slurpd
449 server's command line options
450 if started without the debugging command line option.
451 .TP
452 .B replica-pidfile
453 The ( absolute ) name of a file that will hold the 
454 .B slurpd
455 server's process ID ( see
456 .BR getpid (2)
457 ) if started without the debugging command line option.
458 .TP
459 .B replicationinterval
460 The number of seconds 
461 .B slurpd 
462 waits before checking the replogfile for changes.
463 .TP
464 .B require <conditions>
465 Specify a set of conditions (separated by white space) to
466 require (default none).
467 The directive may be specified globally and/or per-database.
468 .B bind
469 requires bind operation prior to directory operations.
470 .B LDAPv3
471 requires session to be using LDAP version 3.
472 .B authc
473 requires authentication prior to directory operations.
474 .B SASL
475 requires SASL authentication prior to directory operations.
476 .B strong
477 requires strong authentication prior to directory operations.
478 The strong keyword allows protected "simple" authentication
479 as well as SASL authentication.
480 .B none
481 may be used to require no conditions (useful for clearly globally
482 set conditions within a particular database).
483 .TP
484 .B reverse-lookup on | off
485 Enable/disable client name unverified reverse lookup (default is 
486 .BR off 
487 if compiled with --enable-rlookups).
488 .TP
489 .B rootDSE <file>
490 Specify the name of an LDIF(5) file containing user defined attributes
491 for the root DSE.  These attributes are returned in addition to the
492 attributes normally produced by slapd.
493 .TP
494 .B sasl-authz-policy <policy>
495 Used to specify which rules to use for SASL Proxy Authorization. Proxy
496 authorization allows a client to authenticate to the server using one
497 user's credentials, but specify a different identity to use for authorization
498 and access control purposes. It essentially allows user A to login as user
499 B, using user A's password.
500 The
501 .B none
502 flag disables proxy authorization. This is the default setting.
503 The
504 .B from
505 flag will use rules in the
506 .I saslAuthzFrom
507 attribute of the authorization DN.
508 The
509 .B to
510 flag will use rules in the
511 .I saslAuthzTo
512 attribute of the authentication DN.
513 The
514 .B any
515 flag, an alias for the deprecated value of
516 .BR both ,
517 will allow any of the above, whatever succeeds first (checked in
518 .BR to ,
519 .B from
520 sequence.
521 The
522 .B all
523 flag requires both authorizations to succeed.
524 The rules are simply regular expressions specifying which DNs are allowed 
525 to perform proxy authorization.
526 The
527 .I saslAuthzFrom
528 attribute in an entry specifies which other users
529 are allowed to proxy login to this entry. The
530 .I saslAuthzTo
531 attribute in
532 an entry specifies which other users this user can authorize as.  Use of
533 .I saslAuthzTo
534 rules can be easily
535 abused if users are allowed to write arbitrary values to this attribute.
536 In general the
537 .I saslAuthzTo
538 attribute must be protected with ACLs such that
539 only privileged users can modify it.
540 The value of
541 .I saslAuthzFrom
542 and
543 .I saslAuthzTo
544 describes an 
545 .B identity 
546 or a set of identities; it can take three forms:
547 .RS
548 .RS
549 .TP
550 .B ldap:///<base>??[<scope>]?<filter>
551 .RE
552 .RS
553 .B dn[.<dnstyle>]:<pattern>
554 .RE
555 .RS
556 .B u[<mech>[<realm>]]:<pattern>
557 .RE
558 .RS
559 .B <pattern>
560 .RE
561 .RS
562
563 .B <dnstyle>:={exact|onelevel|children|subtree|regex}
564
565 .RE
566 The first form is a valid LDAP
567 .B uri
568 where the 
569 .IR <host>:<port> ,
570 the
571 .I <attrs>
572 and the
573 .I <extensions>
574 portions must be absent, so that the search occurs locally on either
575 .I saslAuthzFrom
576 or 
577 .IR saslAuthzTo .
578 The second form is a 
579 .BR DN ,
580 with the optional style modifiers
581 .IR exact ,
582 .IR onelevel ,
583 .IR children ,
584 and
585 .I subtree
586 for exact, onelevel, children and subtree matches, which cause 
587 .I <pattern>
588 to be normalized according to the DN normalization rules, or the special
589 .I regex
590 style, which causes
591 .I <pattern>
592 to be compiled according to 
593 .BR regex (7).
594 The third form is a SASL
595 .BR id ,
596 with the optional fields
597 .I <mech>
598 and
599 .I <realm>
600 that allow to specify a SASL
601 .BR mechanism ,
602 and eventually a SASL
603 .BR realm ,
604 for those mechanisms that support one.
605 The need to allow the specification of a mechanism is still debated, 
606 and users are strongly discouraged to rely on this possibility.
607 For backwards compatibility, if no identity type is provided, i.e. only
608 .B <pattern>
609 is present, an
610 .I exact DN
611 is assumed; as a consequence, 
612 .B <pattern>
613 is subjected to DN normalization.
614 Since the interpretation of
615 .I saslAuthzFrom
616 and
617 .I saslAuthzTo
618 can impact security, users are strongly encouraged 
619 to explicitly set the type of identity specification that is being used.
620 .RE
621 .TP
622 .B sasl-host <fqdn>
623 Used to specify the fully qualified domain name used for SASL processing.
624 .TP
625 .B sasl-realm <realm>
626 Specify SASL realm.  Default is empty.
627 .TP
628 .B sasl-regexp <match> <replace>
629 Used by the SASL mechanism to convert a SASL authenticated 
630 username to an LDAP DN used for authorization purposes.  Note that
631 the resultant DN need not refer to an existing entry to be considered
632 valid.  When an authorization request is received, the SASL 
633 .B USERNAME, REALM, 
634 and
635 .B MECHANISM
636 are taken, when available, and combined into a SASL name of the 
637 form
638 .RS
639 .RS
640 .TP
641 .B UID=<username>[[,CN=<realm>],CN=<mechanism>,]CN=auth
642
643 .RE
644 This SASL name is then compared against the
645 .B match
646 regular expression, and if the match is successful, the SASL name is
647 replaced with the
648 .B replace
649 string. If there are wildcard strings in the 
650 .B match
651 regular expression that are enclosed in parenthesis, e.g. 
652 .RS
653 .TP
654 .B UID=([^,]*),CN=.*
655
656 .RE
657 then the portion of the SASL name that matched the wildcard will be stored
658 in the numbered placeholder variable $1. If there are other wildcard strings
659 in parenthesis, the matching strings will be in $2, $3, etc. up to $9. The 
660 placeholders can then be used in the 
661 .B replace
662 string, e.g. 
663 .RS
664 .TP
665 .B UID=$1,OU=Accounts,DC=example,DC=com 
666
667 .RE
668 The replaced SASL name can be either a DN or an LDAP URI. If the
669 latter, the server will use the URI to search its own database(s)
670 and, if the search returns exactly one entry, the SASL name is
671 replaced by the DN of that entry.   The LDAP URI must have no
672 hostport, attrs, or extensions components, e.g.
673 .RS
674 .TP
675 .B ldap:///OU=Accounts,DC=example,DC=com??one?(UID=$1)
676
677 .RE
678 Multiple 
679 .B sasl-regexp 
680 options can be given in the configuration file to allow for multiple matching 
681 and replacement patterns. The matching patterns are checked in the order they 
682 appear in the file, stopping at the first successful match.
683
684 .\".B Caution:
685 .\"Because the plus sign + is a character recognized by the regular expression engine,
686 .\"and it will appear in SASL names that include a REALM, be careful to escape the
687 .\"plus sign with a backslash \\+ to remove the character's special meaning.
688 .RE
689 .TP
690 .B sasl-secprops <properties>
691 Used to specify Cyrus SASL security properties.
692 The
693 .B none
694 flag (without any other properties) causes the flag properties
695 default, "noanonymous,noplain", to be cleared.
696 The
697 .B noplain
698 flag disables mechanisms susceptible to simple passive attacks.
699 The
700 .B noactive
701 flag disables mechanisms susceptible to active attacks.
702 The
703 .B nodict
704 flag disables mechanisms susceptible to passive dictionary attacks.
705 The
706 .B noanonymous
707 flag disables mechanisms which support anonymous login.
708 The
709 .B forwardsec
710 flag require forward secrecy between sessions.
711 The
712 .B passcred
713 require mechanisms which pass client credentials (and allow
714 mechanisms which can pass credentials to do so).
715 The
716 .B minssf=<factor> 
717 property specifies the minimum acceptable
718 .I security strength factor
719 as an integer approximate to effective key length used for
720 encryption.  0 (zero) implies no protection, 1 implies integrity
721 protection only, 56 allows DES or other weak ciphers, 112
722 allows triple DES and other strong ciphers, 128 allows RC4,
723 Blowfish and other modern strong ciphers.  The default is 0.
724 The
725 .B maxssf=<factor> 
726 property specifies the maximum acceptable
727 .I security strength factor
728 as an integer (see minssf description).  The default is INT_MAX.
729 The
730 .B maxbufsize=<size> 
731 property specifies the maximum security layer receive buffer
732 size allowed.  0 disables security layers.  The default is 65536.
733 .TP
734 .B schemadn <dn>
735 Specify the distinguished name for the subschema subentry that
736 controls the entries on this server.  The default is "cn=Subschema".
737 .TP
738 .B security <factors>
739 Specify a set of factors (separated by white space) to require.
740 An integer value is associated with each factor and is roughly
741 equivalent of the encryption key length to require.  A value
742 of 112 is equivalent to 3DES, 128 to Blowfish, etc..
743 The directive may be specified globally and/or per-database.
744 .B ssf=<n>
745 specifies the overall security strength factor.
746 .B transport=<n>
747 specifies the transport security strength factor.
748 .B tls=<n>
749 specifies the TLS security strength factor.
750 .B sasl=<n>
751 specifies the SASL security strength factor.
752 .B update_ssf=<n>
753 specifies the overall security strength factor to require for
754 directory updates.
755 .B update_transport=<n>
756 specifies the transport security strength factor to require for
757 directory updates.
758 .B update_tls=<n>
759 specifies the TLS security strength factor to require for
760 directory updates.
761 .B update_sasl=<n>
762 specifies the SASL security strength factor to require for
763 directory updates.
764 .B simple_bind=<n>
765 specifies the security strength factor required for
766 .I simple
767 username/password authentication.
768 Note that the
769 .B transport
770 factor is measure of security provided by the underlying transport,
771 e.g. ldapi:// (and eventually IPSEC).  It is not normally used.
772 .TP
773 .B sizelimit {<integer>|unlimited}
774 .TP
775 .B sizelimit size[.{soft|hard|unchecked}]=<integer> [...]
776 Specify the maximum number of entries to return from a search operation.
777 The default size limit is 500.
778 Use
779 .B -1
780 or 
781 .B unlimited
782 to specify no limits.
783 The second format allows a fine grain setting of the size limits.
784 Extra args can be added on the same line.
785 See
786 .BR limits
787 for an explanation of the different flags.
788 .TP
789 .B sockbuf_max_incoming <integer>
790 Specify the maximum incoming LDAP PDU size for anonymous sessions.
791 The default is 262143.
792 .TP
793 .B sockbuf_max_incoming_auth <integer>
794 Specify the maximum incoming LDAP PDU size for authenticated sessions.
795 The default is 4194303.
796 .TP
797 .B srvtab <filename>
798 Specify the srvtab file in which the kerberos keys necessary for
799 authenticating clients using kerberos can be found. This option is only
800 meaningful if you are using Kerberos authentication.
801 .TP
802 .B threads <integer>
803 Specify the maximum size of the primary thread pool.
804 The default is 16.
805 .TP
806 .B timelimit {<integer>|unlimited}
807 .TP
808 .B timelimit time[.{soft|hard}]=<integer> [...]
809 Specify the maximum number of seconds (in real time)
810 .B slapd
811 will spend answering a search request.  The default time limit is 3600.
812 Use
813 .B -1
814 or 
815 .B unlimited
816 to specify no limits.
817 The second format allows a fine grain setting of the time limits.
818 Extra args can be added on the same line.
819 See
820 .BR limits
821 for an explanation of the different flags.
822 .TP
823 .B ucdata-path <path>
824 Specify the path to the directory containing the Unicode character
825 tables. The default path is DATADIR/ucdata.
826 .SH TLS OPTIONS
827 If
828 .B slapd
829 is built with support for Transport Layer Security, there are more options
830 you can specify.
831 .TP
832 .B TLSCipherSuite <cipher-suite-spec>
833 Permits configuring what ciphers will be accepted and the preference order.
834 <cipher-suite-spec> should be a cipher specification for OpenSSL.  Example:
835
836 TLSCipherSuite HIGH:MEDIUM:+SSLv2
837
838 To check what ciphers a given spec selects, use:
839
840 openssl ciphers -v <cipher-suite-spec>
841 .TP
842 .B TLSCACertificateFile <filename>
843 Specifies the file that contains certificates for all of the Certificate
844 Authorities that
845 .B slapd
846 will recognize.
847 .TP
848 .B TLSCACertificatePath <path>
849 Specifies the path of a directory that contains Certificate Authority
850 certificates in separate individual files. Usually only one of this
851 or the TLSCACertificateFile is used.
852 .TP
853 .B TLSCertificateFile <filename>
854 Specifies the file that contains the
855 .B slapd
856 server certificate.
857 .TP
858 .B TLSCertificateKeyFile <filename>
859 Specifies the file that contains the
860 .B slapd
861 server private key that matches the certificate stored in the
862 .B TLSCertificateFile
863 file.  Currently, the private key must not be protected with a password, so
864 it is of critical importance that it is protected carefully. 
865 .TP
866 .B TLSRandFile <filename>
867 Specifies the file to obtain random bits from when /dev/[u]random
868 is not available.  Generally set to the name of the EGD/PRNGD socket.
869 The environment variable RANDFILE can also be used to specify the filename.
870 .TP
871 .B TLSVerifyClient <level>
872 Specifies what checks to perform on client certificates in an
873 incoming TLS session, if any.
874 The
875 .B <level>
876 can be specified as one of the following keywords:
877 .RS
878 .TP
879 .B never
880 This is the default.
881 .B slapd
882 will not ask the client for a certificate.
883 .TP
884 .B allow
885 The client certificate is requested.  If no certificate is provided,
886 the session proceeds normally.  If a bad certificate is provided,
887 it will be ignored and the session proceeds normally.
888 .TP
889 .B try
890 The client certificate is requested.  If no certificate is provided,
891 the session proceeds normally.  If a bad certificate is provided,
892 the session is immediately terminated.
893 .TP
894 .B demand | hard | true
895 These keywords are all equivalent, for compatibility reasons.
896 The client certificate is requested.  If no certificate is provided,
897 or a bad certificate is provided, the session is immediately terminated.
898
899 Note that a valid client certificate is required in order to use the
900 SASL EXTERNAL authentication mechanism with a TLS session.  As such,
901 a non-default
902 .B TLSVerifyClient
903 setting must be chosen to enable SASL EXTERNAL authentication.
904 .RE
905 .SH GENERAL BACKEND OPTIONS
906 Options in this section only apply to the configuration file section
907 for the specified backend.  They are supported by every
908 type of backend.
909 .TP
910 .B backend <databasetype>
911 Mark the beginning of a backend definition. <databasetype>
912 should be one of
913 .B bdb,
914 .B dnssrv,
915 .B ldap,
916 .B ldbm,
917 .B meta,
918 .B monitor,
919 .B null,
920 .B passwd,
921 .B perl,
922 .B shell,
923 .B sql,
924 or
925 .B tcl,
926 depending on which backend will serve the database.
927
928 .SH GENERAL DATABASE OPTIONS
929 Options in this section only apply to the configuration file section
930 for the database in which they are defined.  They are supported by every
931 type of backend.  Note that the
932 .B database
933 and at least one
934 .B suffix
935 option are mandatory for each database.
936 .TP
937 .B database <databasetype>
938 Mark the beginning of a new database instance definition. <databasetype>
939 should be one of
940 .B bdb,
941 .B dnssrv,
942 .B ldap,
943 .B ldbm,
944 .B meta,
945 .B monitor,
946 .B null,
947 .B passwd,
948 .B perl,
949 .B shell,
950 .B sql,
951 or
952 .B tcl,
953 depending on which backend will serve the database.
954 .TP
955 .B lastmod on | off
956 Controls whether
957 .B slapd
958 will automatically maintain the 
959 modifiersName, modifyTimestamp, creatorsName, and 
960 createTimestamp attributes for entries.  By default, lastmod is on.
961 .TP
962 .B limits <who> <limit> [<limit> [...]]
963 Specify time and size limits based on who initiated an operation.
964 The argument
965 .B who
966 can be any of
967 .RS
968 .RS
969 .TP
970 anonymous | users | [dn[.<style>]=]<pattern> | group[/oc[/at]]=<pattern>
971
972 .RE
973 with
974 .RS
975 .TP
976 <style> ::= exact | base | onelevel | subtree | children | regex | anonymous
977
978 .RE
979 The term
980 .B anonymous
981 matches all unauthenticated clients.
982 The term
983 .B users
984 matches all authenticated clients;
985 otherwise an
986 .B exact
987 dn pattern is assumed unless otherwise specified by qualifying 
988 the (optional) key string
989 .B dn
990 with 
991 .B exact
992 or
993 .B base
994 (which are synonyms), to require an exact match; with
995 .BR onelevel , 
996 to require exactly one level of depth match; with
997 .BR subtree ,
998 to allow any level of depth match, including the exact match; with
999 .BR children ,
1000 to allow any level of depth match, not including the exact match;
1001 .BR regex
1002 explicitly requires the (default) match based on regular expression
1003 pattern, as detailed in
1004 .BR regex (7).
1005 Finally,
1006 .B anonymous
1007 matches unbound operations; the 
1008 .B pattern
1009 field is ignored.
1010 The same behavior is obtained by using the 
1011 .B anonymous
1012 form of the
1013 .B who
1014 clause.
1015 The term
1016 .BR group ,
1017 with the optional objectClass
1018 .B oc
1019 and attributeType
1020 .B at
1021 fields, followed by
1022 .BR pattern ,
1023 sets the limits for any DN listed in the values of the
1024 .B at
1025 attribute (default
1026 .BR member )
1027 of the 
1028 .B oc
1029 group objectClass (default
1030 .BR groupOfNames )
1031 whose DN exactly matches
1032 .BR pattern .
1033
1034 The currently supported limits are 
1035 .B size
1036 and 
1037 .BR time .
1038
1039 The syntax for time limits is 
1040 .BR time[.{soft|hard}]=<integer> ,
1041 where 
1042 .BR integer
1043 is the number of seconds slapd will spend answering a search request.
1044 If no time limit is explicitly requested by the client, the 
1045 .BR soft
1046 limit is used; if the requested time limit exceeds the
1047 .BR hard
1048 limit, an
1049 .I \"Administrative limit exceeded\"
1050 error is returned.
1051 If the
1052 .BR hard
1053 limit is set to 0 or to the keyword 
1054 .IR soft ,
1055 the soft limit is used in either case; if it is set to 
1056 .I -1 
1057 or to the keyword 
1058 .IR none , 
1059 no hard limit is enforced.
1060 Explicit requests for time limits smaller or equal to the
1061 .BR hard 
1062 limit are honored.
1063 If no flag is set, the value is assigned to the 
1064 .BR soft 
1065 limit, and the
1066 .BR hard
1067 limit is set to zero, to preserve the original behavior.
1068
1069 The syntax for size limits is
1070 .BR size[.{soft|hard|unchecked}]=<integer> ,
1071 where
1072 .BR integer
1073 is the maximum number of entries slapd will return answering a search 
1074 request.
1075 If no size limit is explicitly requested by the client, the
1076 .BR soft
1077 limit is used; if the requested size limit exceeds the
1078 .BR hard
1079 limit, an 
1080 .I \"Administrative limit exceeded\"
1081 error is returned.
1082 If the 
1083 .BR hard
1084 limit is set to 0 or to the keyword 
1085 .IR soft , 
1086 the soft limit is used in either case; if it is set to 
1087 .I -1 
1088 or to the keyword
1089 .IR none , 
1090 no hard limit is enforced.
1091 Explicit requests for size limits smaller or equal to the
1092 .BR hard
1093 limit are honored.
1094 The
1095 .BR unchecked
1096 flag sets a limit on the number of candidates a search request is allowed
1097 to examine.
1098 If the selected candidates exceed the 
1099 .BR unchecked
1100 limit, the search will abort with 
1101 .IR \"Unwilling to perform\" .
1102 If it is set to
1103 .I -1 
1104 or to the keyword 
1105 .IR none , 
1106 no limit is applied (the default).
1107 If it is set to
1108 .IR disable ,
1109 the search is not even performed; this can be used to disallow searches
1110 for a specific set of users.
1111 If no flag is set, the value is assigned to the
1112 .BR soft 
1113 limit, and the
1114 .BR hard
1115 limit is set to zero, to preserve the original behavior.
1116
1117 In case of no match, the global limits are used.
1118 The default values are the same of
1119 .B sizelimit
1120 and
1121 .BR timelimit ;
1122 no limit is set on 
1123 .BR unchecked .
1124
1125 If 
1126 .B pagedResults
1127 control is requested, the 
1128 .B hard
1129 size limit is used by default, because the request of a specific page size
1130 is considered as an explicit request for a limitation on the number
1131 of entries to be returned.
1132 However, the size limit applies to the total count of entries returned within
1133 the search, and not to a single page.
1134 Additional size limits may be enforced; the syntax is
1135 .BR size.pr={<integer>|noEstimate|none} ,
1136 where
1137 .B integer
1138 is the max page size if no explicit limit is set; the keyword
1139 .I noEstimate
1140 inhibits the server to return an estimate of the total number
1141 of entries that will be returned; the keyword
1142 .I none
1143 indicates that no limit is applied to the pagedResults control page size.
1144 The syntax
1145 .B size.prtotal={<integer>|none|disabled}
1146 allows to set a limit on the total number of entries that a pagedResults
1147 control allows to return.
1148 By default it is set to the 
1149 .B hard
1150 limit.
1151 When set, 
1152 .B integer
1153 is the max number of entries that the whole search with pagedResults control
1154 can return.
1155 Use 
1156 .B none
1157 to allow unlimited number of entries to be returned, i.e. to use 
1158 pagedResults as a means to allow clients to circumvent size limitations 
1159 on regular searches; the keyword
1160 .I disabled
1161 disables the control, i.e. no paged results can be returned.
1162 Note that the total number of entries returned when the pagedResults control 
1163 is requested cannot exceed the 
1164 .B hard 
1165 size limit of regular searches unless extended by the
1166 .B prtotal
1167 switch.
1168 .RE
1169 .TP
1170 .B maxderefdepth <depth>
1171 Specifies the maximum number of aliases to dereference when trying to
1172 resolve an entry, used to avoid infinite alias loops. The default is 1.
1173 .TP
1174 .B overlay <overlay-name>
1175 Add the specified overlay to this database. An overlay is a piece of
1176 code that intercepts database operations in order to extend or change
1177 them. Overlays are pushed onto
1178 a stack over the database, and so they will execute in the reverse
1179 of the order in which they were configured and the database itself
1180 will receive control last of all.
1181 .TP
1182 .B readonly on | off
1183 This option puts the database into "read-only" mode.  Any attempts to 
1184 modify the database will return an "unwilling to perform" error.  By
1185 default, readonly is off.
1186 .HP
1187 .hy 0
1188 .B replica uri=ldap[s]://<hostname>[:port]|host=<hostname>[:port] 
1189 .B [starttls=yes|critical]
1190 .B [suffix=<suffix> [...]]
1191 .B bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple password>]
1192 .B [saslmech=<SASL mech>] [secprops=<properties>] [realm=<realm>]
1193 .B [authcId=<authentication ID>] [authzId=<authorization ID>]
1194 .B [attr[!]=<attr list>]
1195 .RS
1196 Specify a replication site for this database.  Refer to the "OpenLDAP 
1197 Administrator's Guide" for detailed information on setting up a replicated
1198 .B slapd
1199 directory service. Zero or more
1200 .B suffix
1201 instances can be used to select the subtrees that will be replicated
1202 (defaults to all the database). 
1203 .B host
1204 is deprecated in favor of the
1205 .B uri
1206 option.
1207 .B uri
1208 allows the replica LDAP server to be specified as an LDAP URI. 
1209 A
1210 .B bindmethod
1211 of
1212 .B simple
1213 requires the options
1214 .B binddn 
1215 and
1216 .B credentials  
1217 and should only be used when adequate security services 
1218 (e.g TLS or IPSEC) are in place. A
1219 .B bindmethod 
1220 of
1221 .B sasl 
1222 requires the option
1223 .B saslmech. 
1224 Specific security properties (as with the
1225 .B sasl-secprops
1226 keyword above) for a SASL bind can be set with the
1227 .B secprops
1228 option. A non-default SASL realm can be set with the
1229 .B realm
1230 option.
1231 If the 
1232 .B mechanism
1233 will use Kerberos, a kerberos instance should be given in 
1234 .B authcId.
1235 An
1236 .B attr list
1237 can be given after the 
1238 .B attr
1239 keyword to allow the selective replication of the listed attributes only;
1240 if the optional 
1241 .B !
1242 mark is used, the list is considered exclusive, i.e. the listed attributes
1243 are not replicated.
1244 If an objectClass is listed, all the related attributes
1245 are (are not) replicated.
1246 .RE
1247 .TP
1248 .B replogfile <filename>
1249 Specify the name of the replication log file to log changes to.  
1250 The replication log is typically written by
1251 .BR slapd (8)
1252 and read by
1253 .BR slurpd (8).
1254 See
1255 .BR slapd.replog (5)
1256 for more information.  The specified file should be located
1257 in a directory with limited read/write/execute access as the replication
1258 logs may contain sensitive information.
1259 .TP
1260 .B rootdn <dn>
1261 Specify the distinguished name that is not subject to access control 
1262 or administrative limit restrictions for operations on this database.
1263 This DN may or may not be associated with an entry.  An empty root
1264 DN (the default) specifies no root access is to be granted.  It is
1265 recommended that the rootdn only be specified when needed (such as
1266 when initially populating a database).  If the rootdn is within
1267 a namingContext (suffix) of the database, a simple bind password
1268 may also be provided using the
1269 .B rootpw
1270 directive.
1271 .TP
1272 .B rootpw <password>
1273 Specify a password (or hash of the password) for the rootdn.  The
1274 password can only be set if the rootdn is within the namingContext
1275 (suffix) of the database.
1276 This option accepts all RFC 2307 userPassword formats known to
1277 the server (see 
1278 .B password-hash
1279 description) as well as cleartext.
1280 .BR slappasswd (8) 
1281 may be used to generate a hash of a password.  Cleartext
1282 and \fB{CRYPT}\fP passwords are not recommended.  If empty
1283 (the default), authentication of the root DN is by other means
1284 (e.g. SASL).  Use of SASL is encouraged.
1285 .TP
1286 .B suffix <dn suffix>
1287 Specify the DN suffix of queries that will be passed to this 
1288 backend database.  Multiple suffix lines can be given and at least one is 
1289 required for each database definition.
1290 If the suffix of one database is "inside" that of another, the database
1291 with the inner suffix must come first in the configuration file.
1292 .TP
1293 .B subordinate
1294 Specify that the current backend database is a subordinate of another
1295 backend database. A subordinate database may have only one suffix. This
1296 option may be used to glue multiple databases into a single namingContext.
1297 If the suffix of the current database is within the namingContext of a
1298 superior database, searches against the superior database will be
1299 propagated to the subordinate as well. All of the databases
1300 associated with a single namingContext should have identical rootdns.
1301 Behavior of other LDAP operations is unaffected by this setting. In
1302 particular, it is not possible to use moddn to move an entry from
1303 one subordinate to another subordinate within the namingContext.
1304 .HP
1305 .hy 0
1306 .B syncrepl rid=<replica ID>
1307 .B provider=ldap[s]://<hostname>[:port]
1308 .B [type=refreshOnly|refreshAndPersist]
1309 .B [interval=dd:hh:mm:ss]
1310 .B [retry=[<retry interval> <# of retries>]+]
1311 .B [searchbase=<base DN>]
1312 .B [filter=<filter str>]
1313 .B [scope=sub|one|base]
1314 .B [attrs=<attr list>]
1315 .B [attrsonly]
1316 .B [sizelimit=<limit>]
1317 .B [timelimit=<limit>]
1318 .B [schemachecking=on|off]
1319 .B [updatedn=<dn>]
1320 .B [bindmethod=simple|sasl]
1321 .B [binddn=<dn>]
1322 .B [saslmech=<mech>]
1323 .B [authcid=<identity>]
1324 .B [authzid=<identity>]
1325 .B [credentials=<passwd>]
1326 .B [realm=<realm>]
1327 .B [secprops=<properties>]
1328 .RS
1329 Specify the current database as a replica which is kept up-to-date with the 
1330 master content by establishing the current
1331 .BR slapd (8)
1332 as a replication consumer site running a
1333 .B syncrepl
1334 replication engine.
1335 The replica content is kept synchronized to the master content using
1336 the LDAP Content Synchronization protocol. Refer to the
1337 "OpenLDAP Administrator's Guide" for detailed information on
1338 setting up a replicated
1339 .B slapd
1340 directory service using the 
1341 .B syncrepl
1342 replication engine.
1343 .B rid
1344 identifies the current
1345 .B syncrepl
1346 directive within the replication consumer site.
1347 It is a non-negative integer having no more than three digits.
1348 .B provider
1349 specifies the replication provider site containing the master content
1350 as an LDAP URI. If <port> is not given, the standard LDAP port number
1351 (389 or 636) is used. The content of the
1352 .B syncrepl
1353 replica is defined using a search
1354 specification as its result set. The consumer
1355 .B slapd
1356 will send search requests to the provider
1357 .B slapd
1358 according to the search specification. The search specification includes
1359 .B searchbase, scope, filter, attrs, attrsonly, sizelimit,
1360 and
1361 .B timelimit
1362 parameters as in the normal search specification.
1363 The search specification for the LDAP Content Synchronization operation
1364 has the same value syntax and the same default values as in the
1365 .BR ldapsearch (1)
1366 client search tool.
1367 The LDAP Content Synchronization protocol has two operation types.
1368 In the
1369 .B refreshOnly
1370 operation, the next synchronization search operation
1371 is periodically rescheduled at an interval time (specified by 
1372 .B interval
1373 parameter; 1 day by default)
1374 after each synchronization operation finishes.
1375 In the
1376 .B refreshAndPersist
1377 operation, a synchronization search remains persistent in the provider slapd.
1378 Further updates to the master replica will generate
1379 .B searchResultEntry
1380 to the consumer slapd as the search responses to the persistent
1381 synchronization search.
1382 If an error occurs during replication, the consumer will attempt to
1383 reconnect according to the
1384 .B retry
1385 parameter which is a list of the <retry interval> and <# of retries> pairs.
1386 For example, retry="60 5 300 3" lets the consumer retry every 60 seconds
1387 for the first 10 times and then retry every 300 seconds for the next three
1388 times before stop retrying. + in <# of retries> means indefinite
1389 number of retries until success.
1390 The schema checking can be enforced at the LDAP Sync
1391 consumer site by turning on the
1392 .B schemachecking
1393 parameter. The default is off.
1394 The
1395 .B updatedn
1396 parameter specifies the DN in the consumer site
1397 which is allowed to make changes to the replica.
1398 The DN should have read/write access to the replica database.
1399 Generally, this DN
1400 .I should not
1401 be the same as the
1402 .B rootdn
1403 of the master database.
1404 A
1405 .B bindmethod
1406 of 
1407 .B simple
1408 requires the options 
1409 .B binddn
1410 and 
1411 .B credentials
1412 and should only be used when adequate security services
1413 (e.g. TLS or IPSEC) are in place.
1414 A
1415 .B bindmethod
1416 of
1417 .B sasl
1418 requires the option
1419 .B saslmech.
1420 Depending on the mechanism, an authentication identity and/or
1421 credentials can be specified using
1422 .B authcid
1423 and
1424 .B credentials.
1425 The
1426 .B authzid
1427 parameter may be used to specify an authorization identity.
1428 Specific security properties (as with the
1429 .B sasl-secprops
1430 keyword above) for a SASL bind can be set with the
1431 .B secprops
1432 option. A non default SASL realm can be set with the
1433 .B realm 
1434 option.
1435 .RE
1436 .TP
1437 .B updatedn <dn>
1438 This option is only applicable in a slave
1439 database updated using
1440 .BR slurpd(8). 
1441 It specifies the DN permitted to update (subject to access controls)
1442 the replica (typically, this is the DN
1443 .BR slurpd (8)
1444 binds to update the replica).  Generally, this DN
1445 .I should not
1446 be the same as the
1447 .B rootdn 
1448 used at the master.
1449 .TP
1450 .B updateref <url>
1451 Specify the referral to pass back when
1452 .BR slapd (8)
1453 is asked to modify a replicated local database.
1454 If specified multiple times, each url is provided.
1455
1456 .SH DATABASE-SPECIFIC OPTIONS
1457 Each database may allow specific configuration options; they are
1458 documented separately in the backends' manual pages.
1459 .SH BACKENDS
1460 The following backends can be compiled into slapd.
1461 They are documented in the
1462 .BR slapd-<backend> (5)
1463 manual pages.
1464 .TP
1465 .B bdb
1466 This is the recommended backend for a normal slapd database.
1467 However, it takes more care than with the LDBM backend to configure
1468 it properly.
1469 It uses the Sleepycat Berkeley DB (BDB) package to store data.
1470 .TP
1471 .B ldbm
1472 This is the database backend which is easiest to configure.
1473 However, it does not offer the data durability features of the BDB
1474 backend.
1475 It uses Berkeley DB or GDBM to store data.
1476 .TP
1477 .B dnssrv
1478 This backend is experimental.
1479 It serves up referrals based upon SRV resource records held in the
1480 Domain Name System.
1481 .TP
1482 .B ldap
1483 This backend acts as a proxy to forward incoming requests to another
1484 LDAP server.
1485 .TP
1486 .B meta
1487 This backend performs basic LDAP proxying with respect to a set of
1488 remote LDAP servers. It is an enhancement of the ldap backend. The
1489 proxy cache extension of meta backend provides answering of search
1490 requests from the proxy using results of previously cached requests.
1491 .TP
1492 .B monitor
1493 This backend provides information about the running status of the slapd
1494 daemon.
1495 .TP
1496 .B null
1497 Operations in this backend succeed but do nothing.
1498 .TP
1499 .B passwd
1500 This backend is provided for demonstration purposes only.
1501 It serves up user account information from the system
1502 .BR passwd (5)
1503 file.
1504 .TP
1505 .B perl
1506 This backend embeds a
1507 .BR perl (1)
1508 interpreter into slapd.
1509 It runs Perl subroutines to implement LDAP operations.
1510 .TP
1511 .B shell
1512 This backend executes external programs to implement LDAP operations.
1513 It is is primarily intended to be used in prototypes.
1514 .TP
1515 .B sql
1516 This backend is experimental.
1517 It services LDAP requests from an SQL database.
1518 .TP
1519 .B tcl
1520 This backend is experimental.
1521 It embeds a
1522 .BR Tcl (3tcl)
1523 interpreter into slapd.
1524 It runs Tcl commands to implement LDAP operations.
1525 .SH EXAMPLES
1526 .LP
1527 Here is a short example of a configuration file:
1528 .LP
1529 .RS
1530 .nf
1531 include   SYSCONFDIR/schema/core.schema
1532 pidfile   LOCALSTATEDIR/slapd.pid
1533
1534 # Subtypes of "name" (e.g. "cn" and "ou") with the
1535 # option ";x-hidden" can be searched for/compared,
1536 # but are not shown.  See \fBslapd.access\fP(5).
1537 attributeoptions x-hidden lang-
1538 access to attr=name;x-hidden by * =cs
1539
1540 database  bdb
1541 suffix    "dc=our-domain,dc=com"
1542 # The database directory MUST exist prior to
1543 # running slapd AND should only be accessible
1544 # by the slapd/tools. Mode 0700 recommended.
1545 directory LOCALSTATEDIR/openldap-data
1546 # Indices to maintain
1547 index     objectClass  eq
1548 index     cn,sn,mail   pres,eq,approx,sub
1549
1550 # We serve small clients that do not handle referrals,
1551 # so handle remote lookups on their behalf.
1552 database  ldap
1553 suffix    ""
1554 uri       ldap://ldap.some-server.com/
1555 lastmod   off
1556 .fi
1557 .RE
1558 .LP
1559 "OpenLDAP Administrator's Guide" contains a longer annotated
1560 example of a configuration file.
1561 The original ETCDIR/slapd.conf is another example.
1562 .SH FILES
1563 .TP
1564 ETCDIR/slapd.conf
1565 default slapd configuration file
1566 .SH SEE ALSO
1567 .BR ldap (3),
1568 .BR slapd-bdb (5),
1569 .BR slapd-dnssrv (5),
1570 .BR slapd-ldap (5),
1571 .BR slapd-ldbm (5),
1572 .BR slapd-meta (5),
1573 .BR slapd-monitor (5),
1574 .BR slapd-null (5),
1575 .BR slapd-passwd (5),
1576 .BR slapd-perl (5),
1577 .BR slapd-shell (5),
1578 .BR slapd-sql (5),
1579 .BR slapd-tcl (5),
1580 .BR slapd.access (5),
1581 .BR slapd.plugin (5),
1582 .BR slapd.replog (5),
1583 .BR slapd (8),
1584 .BR slapadd (8),
1585 .BR slapcat (8),
1586 .BR slapindex (8),
1587 .BR slappasswd (8),
1588 .BR slurpd (8),
1589 .LP
1590 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
1591 .SH ACKNOWLEDGEMENTS
1592 .B OpenLDAP
1593 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
1594 .B OpenLDAP
1595 is derived from University of Michigan LDAP 3.3 Release.