]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
f8ef62cd7e1f4d9fb82a694cde31d46d222a6adc
[openldap] / doc / man / man8 / slapadd.8
1 .TH SLAPADD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2006 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 slapadd \- Add entries to a SLAPD database
7 .SH SYNOPSIS
8 .B SBINDIR/slapadd
9 .B [\-v]
10 .B [\-c]
11 .B [\-g]
12 .B [\-u]
13 .B [\-q]
14 .B [\-w]
15 .B [\-d level]
16 .B [\-b suffix]
17 .B [\-n dbnum]
18 .B [\-f slapd.conf]
19 .B [\-F confdir]
20 .B [\-l ldif-file]
21 .SH DESCRIPTION
22 .LP
23 .B Slapadd
24 is used to add entries specified in LDAP Directory Interchange Format
25 (LDIF) to a
26 .BR slapd (8)
27 database.
28 It opens the given database determined by the database number or
29 suffix and adds entries corresponding to the provided LDIF to
30 the database.
31 Databases configured as
32 .B subordinate
33 of this one are also updated, unless \fB-g\fP is specified.
34 The LDIF input is read from standard input or the specified file.
35 .LP
36 As
37 .B slapadd
38 is designed to accept LDIF in database order, as produced by
39 .BR slapcat (8),
40 it does not verify that superior entries exist before
41 adding an entry, does not perform all user and system
42 schema checks, and does not maintain operational
43 attributes (such as createTimeStamp and modifiersName). 
44 .SH OPTIONS
45 .TP
46 .B \-v
47 enable verbose mode.
48 .TP
49 .B \-c
50 enable continue (ignore errors) mode.
51 .TP
52 .B \-g
53 disable subordinate gluing.  Only the specified database will be
54 processed, and not its glued subordinates (if any).
55 .TP
56 .B -s
57 disable schema checking.  This option is intended to be used when loading
58 databases containing special objects, such as fractional objects on a
59 partial replica.  Loading normal objects which do not conform to
60 schema may result in unexpected and ill behavior.
61 .TP
62 .B \-u
63 enable dry-run (don't write to backend) mode.
64 .TP
65 .B \-q
66 enable quick (fewer integrity checks) mode.  Does fewer consistency checks
67 on the input data, and no consistency checks when writing the database.
68 Improves the load time but if any errors or interruptions occur the resulting
69 database will be unusable.
70 .TP
71 .BI \-w
72 write syncrepl context information.
73 After all entries are added, the contextCSN
74 will be updated with the greatest CSN in the database.
75 .TP
76 .BI \-d " level"
77 enable debugging messages as defined by the specified
78 .IR level .
79 .TP
80 .BI \-b " suffix" 
81 Use the specified \fIsuffix\fR to determine which database to
82 add entries to.  The \-b cannot be used in conjunction
83 with the
84 .B \-n
85 option.
86 .TP
87 .BI \-n " dbnum"
88 Add entries to the \fIdbnum\fR\-th database listed in the
89 configuration file.  The
90 .B \-n
91 cannot be used in conjunction with the
92 .B \-b
93 option.
94 .TP
95 .BI \-f " slapd.conf"
96 specify an alternative
97 .BR slapd.conf (5)
98 file.
99 .TP
100 .BI \-F " confdir"
101 specify a config directory.
102 If both
103 .B -f
104 and
105 .B -F
106 are specified, the config file will be read and converted to
107 config directory format and written to the specified directory.
108 If neither option is specified, an attempt to read the
109 default config directory will be made before trying to use the default
110 config file. If a valid config directory exists then the
111 default config file is ignored. If dryrun mode is also specified,
112 no conversion will occur.
113 .TP
114 .BI \-l " ldif-file"
115 Read LDIF from the specified file instead of standard input.
116 .SH LIMITATIONS
117 Your
118 .BR slapd (8)
119 should not be running 
120 when you do this to ensure consistency of the database.
121 .LP
122 .B slapadd 
123 may not provide naming or schema checks.  It is advisable to
124 use
125 .BR ldapadd (1)
126 when adding new entries into an existing directory.
127 .SH EXAMPLES
128 To import the entries specified in file
129 .B ldif
130 into your
131 .BR slapd (8)
132 database give the command:
133 .LP
134 .nf
135 .ft tt
136         SBINDIR/slapadd -l ldif
137 .ft
138 .fi
139 .SH "SEE ALSO"
140 .BR ldap (3),
141 .BR ldif (5),
142 .BR slapcat (8),
143 .BR ldapadd (1),
144 .BR slapd (8)
145 .LP
146 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
147 .SH ACKNOWLEDGEMENTS
148 .B OpenLDAP
149 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
150 .B OpenLDAP
151 is derived from University of Michigan LDAP 3.3 Release.