]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapadd.8
update guide ref + date
[openldap] / doc / man / man8 / slapadd.8
1 .TH SLAPADD 8C "13 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 [\-s]
12 .B [\-d level]
13 .B [\-b suffix]
14 .B [\-n dbnum]
15 .B [\-f slapd.conf]
16 .B [\-l ldif-file]
17 .B 
18 .LP
19 .SH DESCRIPTION
20 .LP
21 .B Slapadd
22 is used to add entries specified in LDAP Directory Interchange Format
23 (LDIF) to a
24 .BR slapd (8)
25 database.
26 It opens the given database determined by the database number or
27 suffix and adds entries corresponding to the provided LDIF to
28 the database.  The LDIF input is read from standard input or
29 the specified file.
30 .LP
31 The LDIF generated by this tool is suitable for use with
32 .BR slapcat (8).
33 .SH OPTIONS
34 .TP
35 .B \-v
36 enable verbose mode.
37 .TP
38 .B \-c
39 enable continue (ignore errors) mode.
40 .TP
41 .B \-s
42 disable schema and other checks.
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"
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.