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