]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
Minor cleanup
[openldap] / doc / man / man8 / slapadd.8
1 .TH SLAPADD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2004 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 [\-p]
13 .B [\-r]
14 .B [\-w]
15 .B [\-d level]
16 .B [\-b suffix]
17 .B [\-n dbnum]
18 .B [\-i rid1,rid2,...]
19 .B [\-f slapd.conf]
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.  The LDIF input is read from standard input or
31 the specified file.
32 .LP
33 As
34 .B slapadd
35 is designed to accept LDIF in database order, as produced by
36 .BR slapcat (8),
37 it does not verify that superior entries exist before
38 adding an entry, does not perform all user and system
39 schema checks, and does not maintain operational
40 attributes (such as createTimeStamp and modifiersName). 
41 .SH OPTIONS
42 .TP
43 .B \-v
44 enable verbose mode.
45 .TP
46 .B \-c
47 enable continue (ignore errors) mode.
48 .TP
49 .B \-u
50 enable dry-run (don't write to backend) mode.
51 .TP
52 .BI \-p
53 If the LDIF input represents a syncrepl consumer replica,
54 promote it to the syncrepl provider's content after adding
55 the entries.
56 .TP
57 .BI \-r
58 If  the  LDIF  input represents a  syncrepl  provider, demote 
59 it  to  the syncrepl consumer replica after adding the entries.
60 .TP
61 .BI \-w
62 When used with either 
63 .B \-p
64 or
65 .B \-r,
66 rebuild the new syncrepl
67 information from the contents of the added entries.
68 The syncrepl information contained in the LDIF input
69 file is ignored.
70 .TP
71 .BI \-d " level"
72 enable debugging messages as defined by the specified
73 .IR level .
74 .TP
75 .BI \-b " suffix" 
76 Use the specified \fIsuffix\fR to determine which database to
77 add entries to.  The \-b cannot be used in conjunction
78 with the
79 .B \-n
80 option.
81 .TP
82 .BI \-n " dbnum"
83 Add entries to the \fIdbnum\fR\-th database listed in the
84 configuration file.  The
85 .B \-n
86 cannot be used in conjunction with the
87 .B \-b
88 option.
89 .TP
90 .BI \-i " rid1,rid2,..."
91 Specify the replication ids for one or more syncrepl consumer
92 replicas contained in the LDIF input. If omitted, 0 is used
93 as the replication id.
94 .TP
95 .BI \-f " slapd.conf"
96 specify an alternative
97 .BR slapd.conf (5)
98 file.
99 .TP
100 .BI \-l " ldif-file"
101 Read LDIF from the specified file instead of standard input.
102 .SH LIMITATIONS
103 Your
104 .BR slapd (8)
105 should not be running 
106 when you do this to ensure consistency of the database.
107 .LP
108 .B slapadd 
109 may not provide naming or schema checks.  It is advisable to
110 use
111 .BR ldapadd (1)
112 when adding new entries into an existing directory.
113 .SH EXAMPLES
114 To import the entries specified in file
115 .B ldif
116 into your
117 .BR slapd (8)
118 database give the command:
119 .LP
120 .nf
121 .ft tt
122         SBINDIR/slapadd -l ldif
123 .ft
124 .fi
125 .SH "SEE ALSO"
126 .BR ldap (3),
127 .BR ldif (5),
128 .BR slapcat (8),
129 .BR ldapadd (1),
130 .BR slapd (8)
131 .LP
132 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
133 .SH ACKNOWLEDGEMENTS
134 .B OpenLDAP
135 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
136 .B OpenLDAP
137 is derived from University of Michigan LDAP 3.3 Release.