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