1 .TH SLAPADD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapadd \- Add entries to a SLAPD database
14 .BI \-d \ debug-level\fR]
16 .BI \-f \ slapd.conf\fR]
24 .BI \-l \ ldif-file\fR]
28 .BI \-o \ option\fR[ = value\fR]]
44 is used to add entries specified in LDAP Directory Interchange Format
48 It opens the given database determined by the database number or
49 suffix and adds entries corresponding to the provided LDIF to
51 Databases configured as
53 of this one are also updated, unless \fB\-g\fP is specified.
54 The LDIF input is read from standard input or the specified file.
56 All files eventually created by
58 will belong to the identity
60 is run as, so make sure you either run
62 with the same identity
64 will be run as (see option
68 or change file ownership before running
73 Use the specified \fIsuffix\fR to determine which database to
74 add entries to. The \fB\-b\fP cannot be used in conjunction
80 enable continue (ignore errors) mode.
83 enable debugging messages as defined by the specified
90 specify an alternative
95 specify a config directory.
100 are specified, the config file will be read and converted to
101 config directory format and written to the specified directory.
102 If neither option is specified, an attempt to read the
103 default config directory will be made before trying to use the default
104 config file. If a valid config directory exists then the
105 default config file is ignored. If dry-run mode is also specified,
106 no conversion will occur.
109 disable subordinate gluing. Only the specified database will be
110 processed, and not its glued subordinates (if any).
113 Jump to the specified line number in the LDIF file before processing
114 any entries. This allows a load that was aborted due to errors in the
115 input LDIF to be resumed after the errors are corrected.
118 Read LDIF from the specified file instead of standard input.
121 Add entries to the \fIdbnum\fR-th database listed in the
122 configuration file. The
124 cannot be used in conjunction with the
127 To populate the config database
128 .BR slapd\-config (5),
131 as it is always the first database. It must physically exist
132 on the filesystem prior to this, however.
134 .BI \-o \ option\fR[ = value\fR]
139 Possible generic options/values are:
142 syslog=<subsystems> (see `\-s' in slapd(8))
143 syslog\-level=<level> (see `\-S' in slapd(8))
144 syslog\-user=<user> (see `\-l' in slapd(8))
149 enable quick (fewer integrity checks) mode. Does fewer consistency checks
150 on the input data, and no consistency checks when writing the database.
151 Improves the load time but if any errors or interruptions occur the resulting
152 database will be unusable.
155 disable schema checking. This option is intended to be used when loading
156 databases containing special objects, such as fractional objects on a
157 partial replica. Loading normal objects which do not conform to
158 schema may result in unexpected and ill behavior.
161 Server ID to use in generated entryCSN. Also used for contextCSN
162 if \fB\-w\fP is set as well. Defaults to \fB0\fP.
165 enable dry-run (don't write to backend) mode.
171 write syncrepl context information.
172 After all entries are added, the contextCSN
173 will be updated with the greatest CSN in the database.
177 should not be running
178 when you do this to ensure consistency of the database.
181 may not provide naming or schema checks. It is advisable to
184 when adding new entries into an existing directory.
186 To import the entries specified in file
190 database give the command:
194 SBINDIR/slapadd \-l ldif
204 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)