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

NAME

6       slapmodify - Modify entries in a SLAPD database
7

SYNOPSIS

9       /usr/sbin/slapmodify  [-b suffix] [-c] [-d debug-level] [-f slapd.conf]
10       [-F confdir]  [-g]  [-j lineno]   [-l ldif-file]   [-n dbnum]   [-o op‐
11       tion[=value]] [-q] [-s] [-S SID] [-u] [-v] [-w]
12

DESCRIPTION

14       Slapmodify  is  used to apply modifications specified in LDAP Directory
15       Interchange Format (LDIF) to a slapd(8) database.  It opens  the  given
16       database determined by the database number or suffix and performs modi‐
17       fications corresponding to the provided LDIF to  the  database.   Data‐
18       bases configured as subordinate of this one are also updated, unless -g
19       is specified.  The LDIF input is read from standard input or the speci‐
20       fied file.
21
22       All  files eventually created by slapmodify will belong to the identity
23       slapmodify is run as, so make sure you either run slapmodify  with  the
24       same  identity  slapd(8) will be run as (see option -u in slapd(8)), or
25       change file ownership before running slapd(8).
26
27       Note: slapmodify will also perform the relevant indexing whilst modify‐
28       ing  the  database  if any are configured. For specific details, please
29       see slapindex(8).
30

OPTIONS

32       -b suffix
33              Use the specified suffix to determine which database to add  en‐
34              tries  to.  The -b cannot be used in conjunction with the -n op‐
35              tion.
36
37       -c     enable continue (ignore errors) mode.
38
39       -d debug-level
40              enable debugging messages as defined  by  the  specified  debug-
41              level; see slapd(8) for details.
42
43       -f slapd.conf
44              specify an alternative slapd.conf(5) file.
45
46       -F confdir
47              specify  a  config  directory.  If both -f and -F are specified,
48              the config file will be read and converted to  config  directory
49              format  and  written to the specified directory.  If neither op‐
50              tion is specified, an attempt to read the default config  direc‐
51              tory  will be made before trying to use the default config file.
52              If a valid config directory exists then the default config  file
53              is  ignored.  If  dry-run  mode is also specified, no conversion
54              will occur.
55
56       -g     disable subordinate gluing.  Only the specified database will be
57              processed, and not its glued subordinates (if any).
58
59       -j lineno
60              Jump  to  the specified line number in the LDIF file before pro‐
61              cessing any entries. This allows a modification that was aborted
62              due  to  errors in the input LDIF to be resumed after the errors
63              are corrected.
64
65       -l ldif-file
66              Read LDIF from the specified file instead of standard input.
67
68       -n dbnum
69              Perform changes on the dbnum-th database listed in the  configu‐
70              ration  file.   The -n cannot be used in conjunction with the -b
71              option.  To manipulate the config database slapd-config(5),  use
72              -n  0 as it is always the first database. It must physically ex‐
73              ist on the filesystem prior to this, however.
74
75       -o option[=value]
76              Specify an option with a(n optional)  value.   Possible  generic
77              options/values are:
78
79                     syslog=<subsystems>  (see `-s' in slapd(8))
80                     syslog-level=<level> (see `-S' in slapd(8))
81                     syslog-user=<user>   (see `-l' in slapd(8))
82
83                     schema-check={yes|no}
84                     value-check={yes|no}
85
86              The schema-check option toggles schema checking (default on);
87              the value-check option toggles value checking (default off).
88              The latter is incompatible with -q.
89
90       -q     enable quick (fewer integrity checks) mode.  Does fewer consistency checks
91              on the input data, and no consistency checks when writing the database.
92              Improves the run time but if any errors or interruptions occur the resulting
93              database will be unusable.
94
95       -s     disable schema checking.  This option is intended to be used when
96              manipulating databases containing special objects, such as fractional
97              objects on a partial replica.  Creating normal objects which do not
98              conform to schema may result in unexpected and ill behavior.
99
100       -S SID Server ID to use in generated entryCSN.  Also used for contextCSN
101              if -w is set as well.  Defaults to 0.
102
103       -u     enable dry-run (don't write to backend) mode.
104
105       -v     enable verbose mode.
106
107       -w     write syncrepl context information.
108              After all entries are added, the contextCSN
109              will be updated with the greatest CSN in the database.
110

LIMITATIONS

112       Your  slapd(8) should not be running when you do this to ensure consis‐
113       tency of the database.
114
115       Not all backends support all types of modification,  modrdn  changetype
116       in particular is not implemented for any of the current backends.
117
118       slapmodify may not provide naming or schema checks.  It is advisable to
119       use ldapmodify(1) when possible.
120

EXAMPLES

122       To make modifications specified in file ldif into your  slapd(8)  data‐
123       base give the command:
124
125            /usr/sbin/slapmodify -l ldif
126

SEE ALSO

128       ldap(3),  ldif(5), slapcat(8), slapadd(8), slapindex(8), ldapmodify(1),
129       slapd(8)
130
131       "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
132

ACKNOWLEDGEMENTS

134       OpenLDAP Software is developed and maintained by The  OpenLDAP  Project
135       <http://www.openldap.org/>.  OpenLDAP Software is derived from the Uni‐
136       versity of Michigan LDAP 3.3 Release.
137
138
139
140OpenLDAP 2.6.3                    2022/07/14                    SLAPMODIFY(8C)
Impressum