1 .TH SLAPADD 8C "2008/07/16" "OpenLDAP 2.4.11"
2 .\" $OpenLDAP: pkg/ldap/doc/man/man8/slapadd.8,v 1.34.2.8 2008/02/11 23:26:40 kurt Exp $
3 .\" Copyright 1998-2008 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapadd \- Add entries to a SLAPD database
28 is used to add entries specified in LDAP Directory Interchange Format
32 It opens the given database determined by the database number or
33 suffix and adds entries corresponding to the provided LDIF to
35 Databases configured as
37 of this one are also updated, unless \fB-g\fP is specified.
38 The LDIF input is read from standard input or the specified file.
40 All files eventually created by
42 will belong to the identity
44 is run as, so make sure you either run
46 with the same identity
48 will be run as (see option
52 or change file ownership before running
57 Use the specified \fIsuffix\fR to determine which database to
58 add entries to. The \-b cannot be used in conjunction
64 enable continue (ignore errors) mode.
67 enable debugging messages as defined by the specified
74 specify an alternative
79 specify a config directory.
84 are specified, the config file will be read and converted to
85 config directory format and written to the specified directory.
86 If neither option is specified, an attempt to read the
87 default config directory will be made before trying to use the default
88 config file. If a valid config directory exists then the
89 default config file is ignored. If dryrun mode is also specified,
90 no conversion will occur.
93 disable subordinate gluing. Only the specified database will be
94 processed, and not its glued subordinates (if any).
97 Jump to the specified line number in the LDIF file before processing
98 any entries. This allows a load that was aborted due to errors in the
99 input LDIF to be resumed after the errors are corrected.
102 Read LDIF from the specified file instead of standard input.
105 Add entries to the \fIdbnum\fR\-th database listed in the
106 configuration file. The
108 cannot be used in conjunction with the
112 .BI \-o " option[=value]"
117 Possible generic options/values are:
120 syslog=<subsystems> (see `\-s' in slapd(8))
121 syslog-level=<level> (see `\-S' in slapd(8))
122 syslog-user=<user> (see `\-l' in slapd(8))
127 enable quick (fewer integrity checks) mode. Does fewer consistency checks
128 on the input data, and no consistency checks when writing the database.
129 Improves the load time but if any errors or interruptions occur the resulting
130 database will be unusable.
133 disable schema checking. This option is intended to be used when loading
134 databases containing special objects, such as fractional objects on a
135 partial replica. Loading normal objects which do not conform to
136 schema may result in unexpected and ill behavior.
139 Server ID to use in generated entryCSN. Also used for contextCSN
140 if `\-w' is set as well. Defaults to 0.
143 enable dry-run (don't write to backend) mode.
149 write syncrepl context information.
150 After all entries are added, the contextCSN
151 will be updated with the greatest CSN in the database.
155 should not be running
156 when you do this to ensure consistency of the database.
159 may not provide naming or schema checks. It is advisable to
162 when adding new entries into an existing directory.
164 To import the entries specified in file
168 database give the command:
172 /usr/sbin/slapadd -l ldif
182 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
184 .\" Shared Project Acknowledgement Text
185 .B "OpenLDAP Software"
186 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
187 .B "OpenLDAP Software"
188 is derived from University of Michigan LDAP 3.3 Release.