]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapd.conf.5
Change 'attribute' directive to 'attributetype'
[openldap] / doc / man / man5 / slapd.conf.5
1 .TH SLAPD.CONF 5 "5 August 1999" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-1999 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 slapd.conf \- configuration file for slapd, the stand-alone LDAP daemon
7 .SH SYNOPSIS
8 ETCDIR/slapd.conf
9 .SH DESCRIPTION
10 The file
11 .B ETCDIR/slapd.conf
12 contains configuration information for the
13 .BR slapd (8)
14 daemon.  This configuration file is also used by the
15 .BR slurpd (8)
16 replication daemon and by the SLAPD tools
17 .BR slapadd (8),
18 .BR slapcat (8),
19 and
20 .BR slapindex (8).
21 .LP
22 The
23 .B slapd.conf
24 file consists of a series of global configuration options that apply to
25 .B slapd
26 as a whole (including all backends), followed by zero or more database
27 backend definitions that contain information specific to a backend
28 instance.
29 .LP
30 The general format of
31 .B slapd.conf
32 is as follows:
33 .LP
34 .nf
35     # comment - these options apply to every database
36     <global configuration options>
37     # first database definition & configuration options
38     database    <backend 1 type>
39     <configuration options specific to backend 1>
40     # subsequent database definitions & configuration options
41     ...
42 .fi
43 .LP
44 As many backend-specific sections as desired may be included.  Global
45 options can be overridden in a backend (for options that appear more
46 than once, the last appearance in the
47 .B slapd.conf
48 file is used).  Blank lines and comment lines beginning with a `#'
49 character are ignored. If a line begins with white space, it is
50 considered a continuation of the previous line.
51 .LP
52 Arguments on configuration lines are separated by white space. If an
53 argument contains white space, the argument should be enclosed in
54 double quotes.  If an argument contains a double quote (`"') or a
55 backslash character (`\\'), the character should be preceded by a
56 backslash character.
57 .LP
58 The specific configuration options available are discussed below in the
59 Global Configuration Options, General Backend Options, LDBM
60 Backend-Specific Options, Shell Backend-Specific Options, and Password
61 Backend-Specific Options sections.  Refer to "The SLAPD and SLURPD
62 Administrator's Guide" for more details on the slapd configuration
63 file.
64 .SH GLOBAL CONFIGURATION OPTIONS
65 Options described in this section apply to all backends, unless specifically 
66 overridden in a backend definition. Arguments that should be replaced by 
67 actual text are shown in brackets <>.
68 .TP
69 .B
70 access to <what> [ by <who> <accesslevel> ]+
71 Grant access (specified by <accesslevel>) to a set of entries and/or
72 attributes (specified by <what>) by one or more requestors (specified
73 by <who>).  Refer to "The SLAPD and SLURPD Administrator's Guide" for
74 information on using the
75 .B slapd
76 access-control mechanisms.
77 .TP
78 .B
79 attributetype ( <oid> [NAME <name>] [DESC <description>] [OBSOLETE] \
80 [SUP <oid>] [EQUALITY <oid>] [ORDERING <oid>] [SUBSTR <oid>] \
81 [SYNTAX <oidlen>] [SINGLE-VALUE] [COLLECTIVE] [NO-USER-MODIFICATION] \
82 [USAGE <attributeUsage>] )
83 Specify an attribute type using the LDAPv3 syntax defined in RFC 2252.
84 This is the preferred format for attribute type definitions. The slapd
85 parser extends the RFC 2252 definition by allowing string forms as well
86 as numeric OIDs to be used for the attribute OID and attribute syntax OID.
87 (See the
88 .B objectidentifier
89 description.) Currently the syntax name parser is case-sensitive.
90 The known syntax names are:
91 .RS
92 .RS
93 .PD 0
94 AttributeTypeDescription Audio Binary BitString Certificate CertificateList
95 CertificatePair DN DeliveryMethod DirectoryString DITContentRuleDescription
96 DITStructureRuleDescription EnhancedGuide FacsimileTelephoneNumber
97 GeneralizedTime Guide IA5String Integer MatchingRuleDescription
98 MatchingRuleUseDescription MailPreference NameAndOptionalUUID
99 NameFormDescription NumericString ObjectClassDescription OID
100 OtherMailbox OctetString PostalAddress ProtocolInformation
101 PresentationAddress PrintableString SupportedAlgorithm TelephoneNumber
102 TeletexTerminalIdentifier TelexNumber UTCTime LDAPSyntaxDescription
103 SubstringAssertion NISnetgrouptriple Bootparameter
104 .PD
105 .RE
106 .RE
107 .TP
108 .B 
109 attribute[type] <name> [<name2>] { bin | ces | cis | tel | dn }
110 Associate a syntax with an attribute name. This directive is deprecated
111 in favor of the one above. By default, an 
112 attribute is assumed to have syntax
113 .BR cis .
114 An optional alternate name can be 
115 given for an attribute. The possible syntaxes and their meanings are:
116 .RS
117 .RS
118 .PD 0
119 .TP
120 .B bin
121 binary
122 .TP
123 .B ces
124 case exact string
125 .TP
126 .B cis
127 case ignore string
128 .TP
129 .B tel
130 telephone number string
131 .TP
132 .B dn
133 distinguished name
134 .PD
135 .RE
136 .RE
137 .TP
138 .B
139 defaultaccess [self]{ none | compare | search | read | write }
140 Specify the default access to grant requestors not matched by 
141 any other access line.  The default behavior is to grant read access.
142 .TP
143 .B idletimeout <integer>
144 Specify the number of seconds to wait before forcibly closing
145 an idle client connections.  A idletimeout of 0 disables this
146 feature.  The default is 0.
147 .TP
148 .B include <filename>
149 Read additional configuration information from the given file before
150 continuing with the next line of the current file.
151 .TP
152 .B pidfile <filename>
153 The ( absolute ) name of a file that will hold the 
154 .B slapd
155 server's process ID ( see
156 .BR getpid (2)
157 ) if started without the debugging command line option.
158 .TP
159 .B argsfile <filename>
160 The ( absolute ) name of a file that will hold the 
161 .B slapd
162 server's command line options
163 if started without the debugging command line option.
164 .TP
165 .B
166 locale { <locale-name> | on | off }
167 Obey <locale-name>'s character classification and case conversion; i.e. the
168 .BR locale (5)
169 LC_CTYPE category.  See
170 .BR locale (5)
171 for details about locales.  "on" takes the locale from the environment,
172 typically $LANG or $LC_CTYPE, and will only work properly if slapd will
173 run with the same environment variables as when the database was
174 generated.  "off" (the default setting) resets to the initial "C" locale.
175 .TP
176 .B loglevel <integer>
177 Specify the level at which debugging statements and operation 
178 statistics should be syslogged (currently logged to the
179 .BR syslogd (8) 
180 LOG_LOCAL4 facility).  Log levels are additive, and available levels
181 are:
182 .RS
183 .RS
184 .PD 0
185 .TP
186 .B 1
187 trace function calls
188 .TP
189 .B 2
190 debug packet handling
191 .TP
192 .B 4
193 heavy trace debugging
194 .TP
195 .B 8
196 connection management
197 .TP
198 .B 16
199 print out packets sent and received
200 .TP
201 .B 32
202 search filter processing
203 .TP
204 .B 64
205 configuration file processing
206 .TP
207 .B 128
208 access control list processing
209 .TP
210 .B 256
211 stats log connections/operations/results
212 .TP
213 .B 512
214 stats log entries sent
215 .TP
216 .B 1024
217 print communication with shell backends
218 .TP
219 .B 2048
220 entry parsing
221 .PD
222 .RE
223 .RE
224 .TP
225 .B
226 objectclass ( <oid> [NAME <name>] [DESC <description] [OBSOLETE] \
227 [SUP <oids>] [{ ABSTRACT | STRUCTURAL | AUXILIARY }] [MUST <oids>] \
228 [MAY <oids>] )
229 Specify an objectclass using the LDAPv3 syntax defined in RFC 2252.
230 This is the preferred format for object class definitions. The slapd
231 parser extends the RFC 2252 definition by allowing string forms as well
232 as numeric OIDs to be used for the object class OID. (See the
233 .B
234 objectidentifier
235 description.) Object classes are "STRUCTURAL" by default.
236 .TP
237 .B
238 objectclass <name> requires <attrs> allows <attrs>
239 Define the schema rules for the object class named <name>.  These are
240 used in conjunction with the schemacheck option. This directive is
241 deprecated in favor of the one above.
242 .TP
243 .B objectidentifier <name> { <oid> | <name>[:<suffix>] }
244 Define a string name that equates to the given OID. The string can be used
245 in place of the numeric OID in objectclass and attribute definitions. The
246 name can also be used with a suffix of the form ":xx" in which case the
247 value "oid.xx" will be used.
248 .TP
249 .B referral <url>
250 Specify the referral to pass back when
251 .BR slapd (8)
252 cannot find a local database to handle a request.
253 If specified multiple times, each url is provided.
254 .TP
255 .B schemacheck { on | off }
256 Turn schema checking on or off. The default is on.
257 .TP
258 .B sizelimit <integer>
259 Specify the maximum number of entries to return from a search operation.
260 The default size limit is 500.
261 .TP
262 .B srvtab <filename>
263 Specify the srvtab file in which the kerberos keys necessary for
264 authenticating clients using kerberos can be found. This option is only
265 meaningful if you are using Kerberos authentication.
266 .TP
267 .B timelimit <integer>
268 Specify the maximum number of seconds (in real time)
269 .B slapd
270 will spend answering a search request.  The default time limit is 3600.
271 .SH TLS OPTIONS
272 If
273 .B slapd
274 is build with support for Transport Layer Security, there are more options
275 you can specify.
276 .TP
277 .B TLSCipherSuite <cipher-suite-spec>
278 Permits configuring what ciphers will be accepted and the preference order.
279 <cipher-suite-spec> should be a cipher specification for OpenSSL.  Example:
280
281 TLSCipherSuite HIGH:MEDIUM:+SSLv2
282
283 To check what ciphers a given spec selects, use:
284
285 openssl ciphers -v <cipher-suite-spec>
286 .TP
287 .B TLSCertificateFile <filename>
288 Specifies the file that contains the
289 .B slapd
290 server certificate.
291 .TP
292 .B TLSCertificateKeyFile <filename>
293 Specifies the file that contains the
294 .B slapd
295 server private key that matches the certificate stored in the
296 .B TLSCertificateFile
297 file.  Currently, the private key must not be protected with a password, so
298 it is of critical importance that it is protected carefully. 
299 .SH GENERAL BACKEND OPTIONS
300 Options in this section only apply to the configuration file section
301 for the backend in which they are defined.  They are supported by every
302 type of backend.
303 .TP
304 .B database <databasetype>
305 Mark the beginning of a new database instance definition. <databasetype>
306 should be one of
307 .B ldbm,
308 .B shell,
309 or
310 .B passwd
311 depending on which backend will serve the database.
312 .TP
313 .B lastmod on | off
314 Controls whether
315 .B slapd
316 will automatically maintain the 
317 modifiersName, modifyTimestamp, creatorsName, and 
318 createTimestamp attributes for entries.  By default, lastmod is on.
319 .TP
320 .B readonly on | off
321 This option puts the database into "read-only" mode.  Any attempts to 
322 modify the database will return an "unwilling to perform" error.  By
323 default, readonly is off.
324 .TP
325 .B
326 replica host=<hostname>[:port] "binddn=<DN>" bindmethod=simple |
327 .B
328 kerberos [credentials=<password>] [srvtab=<filename>]
329 .br
330 Specify a replication site for this database.  Refer to "The SLAPD and
331 SLURPD Administrator's Guide" for detailed information on setting up
332 a replicated
333 .B slapd
334 directory service.
335 .TP
336 .B replogfile <filename>
337 Specify the name of the replication log file to log changes to.  
338 The replication log is typically written by
339 .BR slapd (8)
340 and read by
341 .BR slurpd (8).
342 See
343 .BR slapd.replog (5)
344 for more information.
345 .TP
346 .B rootdn <dn>
347 Specify the DN of an entry that is not subject to access control 
348 or administrative limit restrictions for operations on this database.
349 .TP
350 .B rootpw <password>
351 Specify a password (or hash of the password) for the rootdn.
352 This option accepts all password formats known to the server
353 including \fB{SHA}\fP, \fB{MD5}\fP, \fB{CRYPT}\fP, and cleartext.  
354 Cleartext passwords are not recommended.
355 .TP
356 .B suffix <dn suffix>
357 Specify the DN suffix of queries that will be passed to this 
358 backend database.  Multiple suffix lines can be given and at least one is 
359 required for each database definition.
360 .TP
361 .B updatedn <dn>
362 This option is only applicable in a slave
363 .B slapd.
364 It specifies the DN allowed to make changes to the replica (typically,
365 this is the DN
366 .BR slurpd (8)
367 binds as when making changes to the replica).
368 .TP
369 .B updateref <url>
370 Specify the referral to pass back when
371 .BR slapd (8)
372 is asked to modify a replicated local database.
373 If specified multiple times, each url is provided.
374 .SH LDBM BACKEND-SPECIFIC OPTIONS
375 Options in this category only apply to the LDBM backend database. That is,
376 they must follow a "database ldbm" line and come before any subsequent
377 "database" lines.  The LDBM backend is a high-performance database that
378 makes extensive use of indexing and caching to speed data access. 
379 .TP
380 .B cachesize <integer>
381 Specify the size in entries of the in-memory cache maintained 
382 by the LDBM backend database instance.  The default is 1000 entries.
383 .TP
384 .B dbcachesize <integer>
385 Specify the size in bytes of the in-memory cache associated 
386 with each open index file. If not supported by the underlying database 
387 method, this option is ignored without comment.  The default is 100000 bytes.
388 .TP
389 .B dbnolocking
390 Specify that no database locking should be performed.  
391 Enabling this option may improve performance at the expense of data security.
392 .B dbnosync
393 Specify that on-disk database contents should not be immediately
394 synchronized with in memory changes.  Enabling this option may improve
395 performance at the expense of data security.
396 .TP
397 .B directory <directory>
398 Specify the directory where the LDBM files containing the database and
399 associated indexes live.  The default is
400 .B /usr/tmp.
401 .TP
402 .B
403 index { <attrlist> | default } [ pres,eq,approx,sub,none ]
404 Specify the indexes to maintain for the given attribute. If only 
405 an <attr> is given, all possible indexes are maintained.
406 .TP
407 .B mode <integer>
408 Specify the file protection mode that newly created database 
409 index files should have.  The default is 0600.
410 .SH SHELL BACKEND-SPECIFIC OPTIONS
411 Options in this category only apply to the SHELL backend database. That is,
412 they must follow a "database shell" line and come before any subsequent
413 "database" lines.  The Shell backend executes external programs to
414 implement operations, and is designed to make it easy to tie an existing
415 database to the
416 .B slapd
417 front-end.
418 .TP
419 .B bind <pathname>
420 .TP
421 .B unbind <pathname>
422 .TP
423 .B search <pathname>
424 .TP
425 .B compare <pathname>
426 .TP
427 .B modify <pathname>
428 .TP
429 .B modrdn <pathname>
430 .TP
431 .B add <pathname>
432 .TP
433 .B delete <pathname>
434 .TP
435 .B abandon <pathname>
436 These options specify the pathname of the command to execute in response 
437 to the given LDAP operation. The command given should understand and 
438 follow the input/output conventions described in Appendix B of "The SLAPD
439 and SLURPD Administrator's Guide."
440 .LP
441 Note that you need only supply configuration lines for those commands you
442 want the backend to handle. Operations for which a command is not
443 supplied will be refused with an "unwilling to perform" error.
444 .SH PASSWORD BACKEND-SPECIFIC OPTIONS
445 Options in this category only apply to the PASSWD backend database.
446 That is, they must follow a "database passwd" line and come before any
447 subsequent "database" lines.  The PASSWD database serves up the user
448 account information listed in the system
449 .BR passwd (5)
450 file.
451 .TP
452 .B file <filename>
453 Specifies an alternate passwd file to use.  The default is
454 .B /etc/passwd.
455 .SH EXAMPLE
456 "The SLAPD and SLURPD Administrator's Guide" contains an annotated
457 example of a configuration file.
458 .SH FILES
459 ETCDIR/slapd.conf
460 .SH SEE ALSO
461 .BR ldap (3),
462 .BR slapd.replog (5),
463 .BR locale (5),
464 .BR passwd (5),
465 .BR slapd (8),
466 .BR slapadd (8),
467 .BR slapcat (8),
468 .BR slapindex (8),
469 .BR slurpd (8),
470 .LP
471 "The SLAPD and SLURPD Administrator's Guide"
472 .SH ACKNOWLEDGEMENTS
473 .B      OpenLDAP
474 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
475 .B      OpenLDAP
476 is derived from University of Michigan LDAP 3.3 Release.