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