]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
ITS#774 remove extranous paragraph regarding LDIF output
[openldap] / doc / man / man8 / slapadd.8
1 .TH SLAPADD 8C "20 August 2000" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2000 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 .SH OPTIONS
30 .TP
31 .B \-v
32 enable verbose mode.
33 .TP
34 .B \-c
35 enable continue (ignore errors) mode.
36 .TP
37 .BI \-d " level"
38 enable debugging messages as defined by the specified
39 .IR level .
40 .TP
41 .BI \-b " suffix" 
42 Use the specified \fIsuffix\fR to determine which database to
43 add entries to.  The \-b cannot be used in conjunction
44 with the
45 .B \-n
46 option.
47 .TP
48 .BI \-n " dbnum"
49 Add entries to the \fIdbnum\fR\-th database listed in the
50 configuration file.  The
51 .B \-n
52 cannot be used in conjunction with the
53 .B \-b
54 option.
55 .TP
56 .BI \-f " slapd.conf"
57 specify an alternative
58 .BR slapd.conf (5)
59 file.
60 .TP
61 .BI \-l " ldif-file"
62 Read LDIF from the specified file instead of standard input.
63 .SH LIMITATIONS
64 Your
65 .BR slapd (8)
66 should not be running 
67 when you do this to ensure consistency of the database.
68 .LP
69 .B slapadd 
70 may not provide naming or schema checks.  It is advisable to
71 use
72 .BR ldapadd (1)
73 when adding new entries into an existing directory.
74 .SH EXAMPLES
75 To import a entries specified in file
76 .B ldif
77 into your
78 .BR slapd (8)
79 database give the command:
80 .LP
81 .nf
82 .ft tt
83         SBINDIR/slapadd -l ldif
84 .ft
85 .fi
86 .SH "SEE ALSO"
87 .BR ldap (3),
88 .BR ldif (5),
89 .BR slapcat (8),
90 .BR ldapadd (1),
91 .BR slapd (8)
92 .LP
93 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
94 .SH ACKNOWLEDGEMENTS
95 .B      OpenLDAP
96 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
97 .B      OpenLDAP
98 is derived from University of Michigan LDAP 3.3 Release.