]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
typo
[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 .B 
22 .LP
23 .SH DESCRIPTION
24 .LP
25 .B Slapadd
26 is used to add entries specified in LDAP Directory Interchange Format
27 (LDIF) to a
28 .BR slapd (8)
29 database.
30 It opens the given database determined by the database number or
31 suffix and adds entries corresponding to the provided LDIF to
32 the database.  The LDIF input is read from standard input or
33 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 .BI \-p
55 If the LDIF input represents a syncrepl consumer replica,
56 promote it to the syncrepl provider's content after adding
57 the entries.
58 .TP
59 .BI \-r
60 If  the  LDIF  input represents a  syncrepl  provider, demote 
61 it  to  the syncrepl consumer replica after adding the entries.
62 .TP
63 .BI \-w
64 When used with either 
65 .B \-p
66 or
67 .B \-r,
68 rebuild the new syncrepl
69 information from the contents of the added entries.
70 The syncrepl information contained in the LDIF input
71 file is ignored.
72 .TP
73 .BI \-d " level"
74 enable debugging messages as defined by the specified
75 .IR level .
76 .TP
77 .BI \-b " suffix" 
78 Use the specified \fIsuffix\fR to determine which database to
79 add entries to.  The \-b cannot be used in conjunction
80 with the
81 .B \-n
82 option.
83 .TP
84 .BI \-n " dbnum"
85 Add entries to the \fIdbnum\fR\-th database listed in the
86 configuration file.  The
87 .B \-n
88 cannot be used in conjunction with the
89 .B \-b
90 option.
91 .TP
92 .BI \-i " rid1,rid2,..."
93 Specify the replication ids for one or more syncrepl consumer
94 replicas contained in the LDIF input. If omitted, 0 is used
95 as the replication id.
96 .TP
97 .BI \-f " slapd.conf"
98 specify an alternative
99 .BR slapd.conf (5)
100 file.
101 .TP
102 .BI \-l " ldif-file"
103 Read LDIF from the specified file instead of standard input.
104 .SH LIMITATIONS
105 Your
106 .BR slapd (8)
107 should not be running 
108 when you do this to ensure consistency of the database.
109 .LP
110 .B slapadd 
111 may not provide naming or schema checks.  It is advisable to
112 use
113 .BR ldapadd (1)
114 when adding new entries into an existing directory.
115 .SH EXAMPLES
116 To import the entries specified in file
117 .B ldif
118 into your
119 .BR slapd (8)
120 database give the command:
121 .LP
122 .nf
123 .ft tt
124         SBINDIR/slapadd -l ldif
125 .ft
126 .fi
127 .SH "SEE ALSO"
128 .BR ldap (3),
129 .BR ldif (5),
130 .BR slapcat (8),
131 .BR ldapadd (1),
132 .BR slapd (8)
133 .LP
134 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
135 .SH ACKNOWLEDGEMENTS
136 .B OpenLDAP
137 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
138 .B OpenLDAP
139 is derived from University of Michigan LDAP 3.3 Release.