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