1 .TH LDAPMODRDN 1 "12 July 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 \fIbinddn\fP to bind to the LDAP directory. \fIbinddn\fP should be
123 a string-represented DN as defined in RFC 1779.
126 Prompt for simple authentication.
127 This is used instead of specifying the password on the command line.
130 Use \fIpasswd\fP as the password for simple authentication.
133 Specify an alternate host on which the ldap server is running.
136 Specify an alternate TCP port where the ldap server is listening.
138 .BI \-P \ 2\fR\||\|\fI3
139 Specify the LDAP protocol version to use.
141 .BI \-O \ security-properties
142 Specify SASL security properties.
145 Enable SASL Interactive mode. Always prompt. Default is to prompt
149 Enable SASL Quiet mode. Never prompt.
152 Specify the username for SASL bind. The syntax of the username depends on the
153 actual SASL mechanism used.
156 Specify the requested authorization ID for SASL bind.
158 must be one of the following formats:
160 .I <distinguished name>
166 Specify the SASL mechanism to be used for authentication. If it's not
167 specified, the program will choose the best mechanism the server knows.
170 Issue StartTLS (Transport Layer Security) extended operation. If you use
172 , the command will require the operation to be successful.
174 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
175 will replace the RDN of the entry specified by the DN, \fIdn\fP.
177 Otherwise, the contents of \fIfile\fP (or standard input if
180 flag is given) should consist of one or more entries.
183 Distinguished Name (DN)
184 Relative Distinguished Name (RDN)
187 One or more blank lines may be used to separate each DN/RDN pair.
189 Assuming that the file
191 exists and has the contents:
194 cn=Modify Me, dc=OpenLDAP, dc=org
201 ldapmodify -r -f /tmp/entrymods
204 will change the RDN of the "Modify Me" entry from "Modify Me" to
205 "The New Me" and the old cn, "Modify Me" will be removed.
208 Exit status is 0 if no errors occur. Errors result in a non-zero exit
209 status and a diagnostic message being written to standard error.
220 .IR "A String Representation of Distinguished Names",
223 ISODE Consortium, March 1995.
225 There is no interactive mode, but there probably should be.
227 The OpenLDAP Project <http://www.openldap.org/>
230 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
232 is derived from University of Michigan LDAP 3.3 Release.