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