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