1 .TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2012 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapmodrdn \- LDAP rename entry tool
22 .BI \-d \ debuglevel\fR]
30 .BI \-y \ passwdfile\fR]
34 .BI \-h \ ldaphost\fR]
36 .BI \-p \ ldapport\fR]
38 .BR \-P \ { 2 \||\| 3 }]
40 .BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]]
42 .BR \-E \ [ ! ] \fIext\fP [ =\fIextparam\fP ]]
44 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]]
46 .BI \-O \ security-properties\fR]
69 is a shell-accessible interface to the
74 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
75 The entry information is read from standard input, from \fIfile\fP through
78 option, or from the command-line pair \fIdn\fP and
83 Remove old RDN values from the entry. Default is to keep old values.
86 Specify a new superior entry. (I.e., move the target entry and make it a
87 child of the new superior.) This option is not supported in LDAPv2.
90 Show what would be done, but don't actually change entries. Useful for
91 debugging in conjunction with \fB\-v\fP.
94 Use verbose mode, with many diagnostics written to standard output.
97 Continuous operation mode. Errors are reported, but ldapmodrdn
98 will continue with modifications. The default is to exit after
102 Enable manage DSA IT control.
104 makes control critical.
107 Set the LDAP debugging level to \fIdebuglevel\fP.
110 compiled with LDAP_DEBUG defined for this option to have any effect.
113 Read the entry modification information from \fIfile\fP instead of from
114 standard input or the command-line.
117 Use simple authentication instead of SASL.
120 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
121 For SASL binds, the server is expected to ignore this value.
124 Prompt for simple authentication.
125 This is used instead of specifying the password on the command line.
128 Use \fIpasswd\fP as the password for simple authentication.
131 Use complete contents of \fIpasswdfile\fP as the password for
132 simple authentication.
135 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
136 fields are allowed; a list of URI, separated by whitespace or commas
140 Specify an alternate host on which the ldap server is running.
141 Deprecated in favor of \fB\-H\fP.
144 Specify an alternate TCP port where the ldap server is listening.
145 Deprecated in favor of \fB\-H\fP.
147 .BR \-P \ { 2 \||\| 3 }
148 Specify the LDAP protocol version to use.
150 .BI \-O \ security-properties
151 Specify SASL security properties.
153 .BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
155 .BR \-E \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
157 Specify general extensions with \fB\-e\fP and modrdn extensions with \fB\-E\fP.
158 \'\fB!\fP\' indicates criticality.
162 [!]assert=<filter> (an RFC 4515 Filter)
163 !authzid=<authzid> ("dn:<dn>" or "u:<user>")
164 [!]bauthzid (RFC 3829 authzid control)
165 [!]chaining[=<resolve>[/<cont>]]
169 [!]postread[=<attrs>] (a comma-separated attribute list)
170 [!]preread[=<attrs>] (a comma-separated attribute list)
172 sessiontracking[=<username>]
173 abandon,cancel,ignore (SIGINT sends abandon/cancel,
174 or ignores response; if critical, doesn't wait for SIGINT.
183 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]
185 Specify general options.
189 nettimeout=<timeout> (in seconds, or "none" or "max")
190 ldif-wrap=<width> (in columns, or "no" for no wrapping)
194 Enable SASL Interactive mode. Always prompt. Default is to prompt
198 Enable SASL Quiet mode. Never prompt.
201 Specify the authentication ID for SASL bind. The form of the ID
202 depends on the actual SASL mechanism used.
205 Specify the realm of authentication ID for SASL bind. The form of the realm
206 depends on the actual SASL mechanism used.
209 Specify the requested authorization ID for SASL bind.
211 must be one of the following formats:
212 .BI dn: "<distinguished name>"
217 Specify the SASL mechanism to be used for authentication. If it's not
218 specified, the program will choose the best mechanism the server knows.
221 Issue StartTLS (Transport Layer Security) extended operation. If you use
222 \fB\-ZZ\fP, the command will require the operation to be successful.
224 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
225 will replace the RDN of the entry specified by the DN, \fIdn\fP.
227 Otherwise, the contents of \fIfile\fP (or standard input if
228 no \fB\-f\fP flag is given) should consist of one or more entries.
231 Distinguished Name (DN)
232 Relative Distinguished Name (RDN)
235 One or more blank lines may be used to separate each DN/RDN pair.
237 Assuming that the file
239 exists and has the contents:
242 cn=Modify Me,dc=example,dc=com
249 ldapmodrdn \-r \-f /tmp/entrymods
252 will change the RDN of the "Modify Me" entry from "Modify Me" to
253 "The New Me" and the old cn, "Modify Me" will be removed.
256 Exit status is 0 if no errors occur. Errors result in a non-zero exit
257 status and a diagnostic message being written to standard error.
267 The OpenLDAP Project <http://www.openldap.org/>