]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
6e5a57399867d28a53c372f46f8f12af28941eea
[openldap] / doc / man / man8 / slapadd.8
1 .TH SLAPADD 8C "2 October 2001" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2001 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 [\-d level]
12 .B [\-b suffix]
13 .B [\-n dbnum]
14 .B [\-f slapd.conf]
15 .B [\-l ldif-file]
16 .B 
17 .LP
18 .SH DESCRIPTION
19 .LP
20 .B Slapadd
21 is used to add entries specified in LDAP Directory Interchange Format
22 (LDIF) to a
23 .BR slapd (8)
24 database.
25 It opens the given database determined by the database number or
26 suffix and adds entries corresponding to the provided LDIF to
27 the database.  The LDIF input is read from standard input or
28 the specified file.
29 .LP
30 As
31 .B slapadd
32 is designed to accept LDIF in database order, as produced by
33 .BR slapcat (8),
34 it does not verify that superior entries exist before
35 adding an entry. 
36 .SH OPTIONS
37 .TP
38 .B \-v
39 enable verbose mode.
40 .TP
41 .B \-c
42 enable continue (ignore errors) mode.
43 .TP
44 .BI \-d " level"
45 enable debugging messages as defined by the specified
46 .IR level .
47 .TP
48 .BI \-b " suffix" 
49 Use the specified \fIsuffix\fR to determine which database to
50 add entries to.  The \-b cannot be used in conjunction
51 with the
52 .B \-n
53 option.
54 .TP
55 .BI \-n " dbnum"
56 Add entries to the \fIdbnum\fR\-th database listed in the
57 configuration file.  The
58 .B \-n
59 cannot be used in conjunction with the
60 .B \-b
61 option.
62 .TP
63 .BI \-f " slapd.conf"
64 specify an alternative
65 .BR slapd.conf (5)
66 file.
67 .TP
68 .BI \-l " ldif-file"
69 Read LDIF from the specified file instead of standard input.
70 .SH LIMITATIONS
71 Your
72 .BR slapd (8)
73 should not be running 
74 when you do this to ensure consistency of the database.
75 .LP
76 .B slapadd 
77 may not provide naming or schema checks.  It is advisable to
78 use
79 .BR ldapadd (1)
80 when adding new entries into an existing directory.
81 .SH EXAMPLES
82 To import a entries specified in file
83 .B ldif
84 into your
85 .BR slapd (8)
86 database give the command:
87 .LP
88 .nf
89 .ft tt
90         SBINDIR/slapadd -l ldif
91 .ft
92 .fi
93 .SH "SEE ALSO"
94 .BR ldap (3),
95 .BR ldif (5),
96 .BR slapcat (8),
97 .BR ldapadd (1),
98 .BR slapd (8)
99 .LP
100 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
101 .SH ACKNOWLEDGEMENTS
102 .B      OpenLDAP
103 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
104 .B      OpenLDAP
105 is derived from University of Michigan LDAP 3.3 Release.