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