1SLAPADD(8C)                                                        SLAPADD(8C)
2
3
4

NAME

6       slapadd - Add entries to a SLAPD database
7

SYNOPSIS

9       /usr/sbin/slapadd  [-v] [-c] [-g] [-u] [-q] [-w] [-d level] [-b suffix]
10       [-n dbnum] [-f slapd.conf] [-F confdir] [-l ldif-file]
11

DESCRIPTION

13       Slapadd is used to add entries specified in LDAP Directory  Interchange
14       Format  (LDIF)  to  a  slapd(8)  database.  It opens the given database
15       determined by the database number or suffix  and  adds  entries  corre‐
16       sponding to the provided LDIF to the database.  Databases configured as
17       subordinate of this one are also updated, unless -g is specified.   The
18       LDIF input is read from standard input or the specified file.
19
20       As slapadd is designed to accept LDIF in database order, as produced by
21       slapcat(8), it does not  verify  that  superior  entries  exist  before
22       adding  an  entry,  does not perform all user and system schema checks,
23       and does not maintain operational attributes (such  as  createTimeStamp
24       and modifiersName).
25

OPTIONS

27       -v     enable verbose mode.
28
29       -c     enable continue (ignore errors) mode.
30
31       -g     disable subordinate gluing.  Only the specified database will be
32              processed, and not its glued subordinates (if any).
33
34       -u     enable dry-run (don't write to backend) mode.
35
36       -q     enable quick (fewer integrity checks) mode.  Does fewer  consis‐
37              tency  checks  on the input data, and no consistency checks when
38              writing the database.  Improves the load time but if any  errors
39              or interruptions occur the resulting database will be unusable.
40
41       -w     write  syncrepl  context  information.   After  all  entries are
42              added, the contextCSN will be updated with the greatest  CSN  in
43              the database.
44
45       -d level
46              enable debugging messages as defined by the specified level.
47
48       -b suffix
49              Use  the  specified  suffix  to  determine which database to add
50              entries to.  The -b cannot be used in conjunction  with  the  -n
51              option.
52
53       -n dbnum
54              Add entries to the dbnum-th database listed in the configuration
55              file.  The -n cannot be used in conjunction with the -b option.
56
57       -f slapd.conf
58              specify an alternative slapd.conf(5) file.
59
60       -F confdir
61              specify a config directory.  If both -f and  -F  are  specified,
62              the  config  file will be read and converted to config directory
63              format and written  to  the  specified  directory.   If  neither
64              option  is  specified,  an  attempt  to  read the default config
65              directory will be made before trying to use the  default  config
66              file. If a valid config directory exists then the default config
67              file is ignored. If dryrun mode is also specified, no conversion
68              will occur.
69
70       -l ldif-file
71              Read LDIF from the specified file instead of standard input.
72

LIMITATIONS

74       Your  slapd(8) should not be running when you do this to ensure consis‐
75       tency of the database.
76
77       slapadd may not provide naming or schema checks.  It  is  advisable  to
78       use ldapadd(1) when adding new entries into an existing directory.
79

EXAMPLES

81       To  import  the entries specified in file ldif into your slapd(8) data‐
82       base give the command:
83
84            /usr/sbin/slapadd -l ldif
85

SEE ALSO

87       ldap(3), ldif(5), slapcat(8), ldapadd(1), slapd(8)
88
89       "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
90

ACKNOWLEDGEMENTS

92       OpenLDAP  is  developed  and  maintained  by   The   OpenLDAP   Project
93       (http://www.openldap.org/).   OpenLDAP  is  derived  from University of
94       Michigan LDAP 3.3 Release.
95
96
97
98OpenLDAP 2.3.34                    2007/2/16                       SLAPADD(8C)
Impressum