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