1 .TH LDAPMODRDN 1 "20 August 2000" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2000 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 \-h \ ldaphost\fR]
36 .BI \-p \ ldapport\fR]
38 .BI \-P \ 2\fR\||\|\fI3\fR]
40 .BR \-O \ security-properties ]
46 .BI \-U \ username\fR]
61 is a shell-accessible interface to the
66 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
67 The entry information is read from standard input, from \fIfile\fP through
70 option, or from the command-line pair \fIdn\fP and
75 Remove old RDN values from the entry. Default is to keep old values.
78 Show what would be done, but don't actually change entries. Useful for
79 debugging in conjunction with -v.
82 Use verbose mode, with many diagnostics written to standard output.
85 Use Kerberos authentication instead of simple authentication. It is
86 assumed that you already have a valid ticket granting ticket.
88 must be compiled with KERBEROS defined for this option to have effect.
91 Same as \-k, but only does step 1 of the kerberos bind. This is useful
92 when connecting to a slapd and there is no x500dsa.hostname principal
93 registered with your kerberos servers.
96 Automatically chase referrals.
99 Continuous operation mode. Errors are reported, but ldapmodify
100 will continue with modifications. The default is to exit after
104 Enable manage DSA IT control.
106 makes control critical.
109 Set the LDAP debugging level to \fIdebuglevel\fP.
112 compiled with LDAP_DEBUG defined for this option to have any effect.
115 Read the entry modification information from \fIfile\fP instead of from
116 standard input or the command-line.
119 Use simple authentication instead of SASL.
122 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
125 Prompt for simple authentication.
126 This is used instead of specifying the password on the command line.
129 Use \fIpasswd\fP as the password for simple authentication.
132 Specify an alternate host on which the ldap server is running.
135 Specify an alternate TCP port where the ldap server is listening.
137 .BI \-P \ 2\fR\||\|\fI3
138 Specify the LDAP protocol version to use.
140 .BI \-O \ security-properties
141 Specify SASL security properties.
144 Enable SASL Interactive mode. Always prompt. Default is to prompt
148 Enable SASL Quiet mode. Never prompt.
151 Specify the username for SASL bind. The syntax of the username depends on the
152 actual SASL mechanism used.
155 Specify the requested authorization ID for SASL bind.
157 must be one of the following formats:
159 .I <distinguished name>
165 Specify the SASL mechanism to be used for authentication. If it's not
166 specified, the program will choose the best mechanism the server knows.
169 Issue StartTLS (Transport Layer Security) extended operation. If you use
171 , the command will require the operation to be successful.
173 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
174 will replace the RDN of the entry specified by the DN, \fIdn\fP.
176 Otherwise, the contents of \fIfile\fP (or standard input if
179 flag is given) should consist of one or more entries.
182 Distinguished Name (DN)
183 Relative Distinguished Name (RDN)
186 One or more blank lines may be used to separate each DN/RDN pair.
188 Assuming that the file
190 exists and has the contents:
193 cn=Modify Me, dc=example, dc=com
200 ldapmodify -r -f /tmp/entrymods
203 will change the RDN of the "Modify Me" entry from "Modify Me" to
204 "The New Me" and the old cn, "Modify Me" will be removed.
207 Exit status is 0 if no errors occur. Errors result in a non-zero exit
208 status and a diagnostic message being written to standard error.
218 There is no interactive mode, but there probably should be.
220 The OpenLDAP Project <http://www.openldap.org/>
223 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
225 is derived from University of Michigan LDAP 3.3 Release.