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
24 .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 ]
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 support 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 Continuous operation mode. Errors are reported, but ldapmodify
97 will continue with modifications. The default is to exit after
101 Enable manage DSA IT control.
103 makes control critical.
106 Set the LDAP debugging level to \fIdebuglevel\fP.
109 compiled with LDAP_DEBUG defined for this option to have any effect.
112 Read the entry modification information from \fIfile\fP instead of from
113 standard input or the command-line.
116 Use simple authentication instead of SASL.
119 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
122 Prompt for simple authentication.
123 This is used instead of specifying the password on the command line.
126 Use \fIpasswd\fP as the password for simple authentication.
129 Specify URI(s) referring to the ldap server(s).
132 Specify an alternate host on which the ldap server is running.
133 Deprecated in favor of -H.
136 Specify an alternate TCP port where the ldap server is listening.
137 Deprecated in favor of -H.
139 .BI \-P \ 2\fR\||\|\fI3
140 Specify the LDAP protocol version to use.
142 .BI \-O \ security-properties
143 Specify SASL security properties.
146 Enable SASL Interactive mode. Always prompt. Default is to prompt
150 Enable SASL Quiet mode. Never prompt.
153 Specify the authentication ID for SASL bind. The form of the ID
154 depends on the actual SASL mechanism used.
157 Specify the requested authorization ID for SASL bind.
159 must be one of the following formats:
161 .I <distinguished name>
167 Specify the SASL mechanism to be used for authentication. If it's not
168 specified, the program will choose the best mechanism the server knows.
171 Issue StartTLS (Transport Layer Security) extended operation. If you use
173 , the command will require the operation to be successful.
175 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
176 will replace the RDN of the entry specified by the DN, \fIdn\fP.
178 Otherwise, the contents of \fIfile\fP (or standard input if
181 flag is given) should consist of one or more entries.
184 Distinguished Name (DN)
185 Relative Distinguished Name (RDN)
188 One or more blank lines may be used to separate each DN/RDN pair.
190 Assuming that the file
192 exists and has the contents:
195 cn=Modify Me, dc=example, dc=com
202 ldapmodify -r -f /tmp/entrymods
205 will change the RDN of the "Modify Me" entry from "Modify Me" to
206 "The New Me" and the old cn, "Modify Me" will be removed.
209 Exit status is 0 if no errors occur. Errors result in a non-zero exit
210 status and a diagnostic message being written to standard error.
220 There is no interactive mode, but there probably should be.
222 The OpenLDAP Project <http://www.openldap.org/>
225 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
227 is derived from University of Michigan LDAP 3.3 Release.