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