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