1 .TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapmodrdn \- LDAP rename entry tool
26 .BI \-d \ debuglevel\fR]
34 .BI \-y \ passwdfile\fR]
38 .BI \-h \ ldaphost\fR]
40 .BI \-p \ ldapport\fR]
42 .BI \-P \ 2\fR\||\|\fI3\fR]
44 .BR \-O \ security-properties ]
67 is a shell-accessible interface to the
72 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
73 The entry information is read from standard input, from \fIfile\fP through
76 option, or from the command-line pair \fIdn\fP and
81 Remove old RDN values from the entry. Default is to keep old values.
84 Show what would be done, but don't actually change entries. Useful for
85 debugging in conjunction with -v.
88 Use verbose mode, with many diagnostics written to standard output.
91 Use Kerberos IV authentication instead of simple authentication. It is
92 assumed that you already have a valid ticket granting ticket.
94 must be compiled with Kerberos support for this option to have effect.
97 Same as \-k, but only does step 1 of the Kerberos IV bind. This is useful
98 when connecting to a slapd and there is no x500dsa.hostname principal
99 registered with your Kerberos Domain Controller(s).
102 Automatically chase referrals.
105 Continuous operation mode. Errors are reported, but ldapmodify
106 will continue with modifications. The default is to exit after
110 Enable manage DSA IT control.
112 makes control critical.
115 Set the LDAP debugging level to \fIdebuglevel\fP.
118 compiled with LDAP_DEBUG defined for this option to have any effect.
121 Read the entry modification information from \fIfile\fP instead of from
122 standard input or the command-line.
125 Use simple authentication instead of SASL.
128 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
131 Prompt for simple authentication.
132 This is used instead of specifying the password on the command line.
135 Use \fIpasswd\fP as the password for simple authentication.
138 Use complete contents of \fIpasswdfile\fP as the password for
139 simple authentication.
142 Specify URI(s) referring to the ldap server(s).
145 Specify an alternate host on which the ldap server is running.
146 Deprecated in favor of -H.
149 Specify an alternate TCP port where the ldap server is listening.
150 Deprecated in favor of -H.
152 .BI \-P \ 2\fR\||\|\fI3
153 Specify the LDAP protocol version to use.
155 .BI \-O \ security-properties
156 Specify SASL security properties.
159 Enable SASL Interactive mode. Always prompt. Default is to prompt
163 Enable SASL Quiet mode. Never prompt.
166 Specify the authentication ID for SASL bind. The form of the ID
167 depends on the actual SASL mechanism used.
170 Specify the realm of authentication ID for SASL bind. The form of the realm
171 depends on the actual SASL mechanism used.
174 Specify the requested authorization ID for SASL bind.
176 must be one of the following formats:
178 .I <distinguished name>
184 Specify the SASL mechanism to be used for authentication. If it's not
185 specified, the program will choose the best mechanism the server knows.
188 Issue StartTLS (Transport Layer Security) extended operation. If you use
190 , the command will require the operation to be successful.
192 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
193 will replace the RDN of the entry specified by the DN, \fIdn\fP.
195 Otherwise, the contents of \fIfile\fP (or standard input if
198 flag is given) should consist of one or more entries.
201 Distinguished Name (DN)
202 Relative Distinguished Name (RDN)
205 One or more blank lines may be used to separate each DN/RDN pair.
207 Assuming that the file
209 exists and has the contents:
212 cn=Modify Me,dc=example,dc=com
219 ldapmodify -r -f /tmp/entrymods
222 will change the RDN of the "Modify Me" entry from "Modify Me" to
223 "The New Me" and the old cn, "Modify Me" will be removed.
226 Exit status is 0 if no errors occur. Errors result in a non-zero exit
227 status and a diagnostic message being written to standard error.
237 The OpenLDAP Project <http://www.openldap.org/>
240 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
242 is derived from University of Michigan LDAP 3.3 Release.