SLAPADD(8) | System Manager's Manual | SLAPADD(8) |
slapadd - Add entries to a SLAPD database
/usr/sbin/slapadd [-b suffix] [-c] [-d debug-level] [-f slapd.conf] [-F confdir] [-g] [-j lineno] [-l ldif-file] [-n dbnum] [-o option[=value]] [-q] [-s] [-S SID] [-u] [-v] [-w]
Slapadd is used to add entries specified in LDAP Directory Interchange Format (LDIF) to a slapd(8) database. It opens the given database determined by the database number or suffix and adds entries corresponding to the provided LDIF to the database. Databases configured as subordinate of this one are also updated, unless -g is specified. The LDIF input is read from standard input or the specified file.
All files eventually created by slapadd will belong to the identity slapadd is run as, so make sure you either run slapadd with the same identity slapd(8) will be run as (see option -u in slapd(8)), or change file ownership before running slapd(8).
Note: slapadd will also perform the relevant indexing whilst adding the database if any are configured. For specific details, please see slapindex(8).
syslog=<subsystems> (see `-s' in slapd(8))
syslog-level=<level> (see `-S' in slapd(8))
syslog-user=<user> (see `-l' in slapd(8))
schema-check={yes|no}
value-check={yes|no}
The schema-check option toggles schema checking (default on); the value-check option toggles value checking (default off). The latter is incompatible with -q.
enable quick (fewer integrity checks) mode. Does fewer consistency checks on the input data, and no consistency checks when writing the database. Improves the load time but if any errors or interruptions occur the resulting database will be unusable.
disable schema checking. This option is intended to be used when loading databases containing special objects, such as fractional objects on a partial consumer. Loading normal objects which do not conform to schema may result in unexpected and ill behavior.
Server ID to use in generated entryCSN. Also used for contextCSN if -w is set as well. Defaults to 0.
enable dry-run (don't write to backend) mode.
enable verbose mode.
write syncrepl context information. After all entries are added, the contextCSN will be updated with the greatest CSN in the database.
Your slapd(8) should not be running when you do this to ensure consistency of the database.
slapadd may not provide naming or schema checks. It is advisable to use ldapadd(1) when adding new entries into an existing directory.
To import the entries specified in file ldif into your slapd(8) database give the command:
/usr/sbin/slapadd -l ldif
ldap(3), ldif(5), slapcat(8), slapindex(8), slapmodify(8), ldapadd(1), slapd(8)
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release.
2022/07/14 | OpenLDAP 2.5.13+dfsg-5 |