1 .TH SLAPINDEX 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapindex \- Reindex entries in a SLAPD database
14 .BI \-d \ debug-level\fR]
16 .BI \-f \ slapd.conf\fR]
24 .BI \-o \ option\fR[ = value\fR]]
40 indices based upon the current contents of a database.
41 It opens the given database determined by the database number or
42 suffix and updates the indices for all values of all attributes
43 of all entries. If a list of specific attributes is provided
44 on the command line, only the indices for those attributes will
46 Databases configured as
48 of this one are also re-indexed, unless \fB\-g\fP is specified.
50 All files eventually created by
52 will belong to the identity
54 is run as, so make sure you either run
56 with the same identity
58 will be run as (see option
62 or change file ownership before running
67 Use the specified \fIsuffix\fR to determine which database to
68 generate output for. The \fB\-b\fP cannot be used in conjunction
74 enable continue (ignore errors) mode.
77 enable debugging messages as defined by the specified
84 specify an alternative
89 specify a config directory.
94 are specified, the config file will be read and converted to
95 config directory format and written to the specified directory.
96 If neither option is specified, an attempt to read the
97 default config directory will be made before trying to use the default
98 config file. If a valid config directory exists then the
99 default config file is ignored.
102 disable subordinate gluing. Only the specified database will be
103 processed, and not its glued subordinates (if any).
106 Generate output for the \fIdbnum\fR-th database listed in the
107 configuration file. The config database
108 .BR slapd\-config (5),
109 is always the first database, so use
114 cannot be used in conjunction with the
118 .BI \-o \ option\fR[ = value\fR]
123 Possible generic options/values are:
126 syslog=<subsystems> (see `\-s' in slapd(8))
127 syslog\-level=<level> (see `\-S' in slapd(8))
128 syslog\-user=<user> (see `\-l' in slapd(8))
133 enable quick (fewer integrity checks) mode. Performs no consistency checks
134 when writing the database. Improves indexing time,
136 the database will most likely be unusable if any errors or
140 enable truncate mode. Truncates (empties) an index database before indexing
141 any entries. May only be used with Quick mode.
148 should not be running (at least, not in read-write
149 mode) when you do this to ensure consistency of the database.
151 This command provides ample opportunity for the user to obtain
152 and drink their favorite beverage.
154 To reindex your SLAPD database, give the command:
161 To regenerate the index for only a specific attribute, e.g. "uid",
166 SBINDIR/slapindex uid
176 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)