1 .TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2004 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapmodrdn \- LDAP rename entry tool
24 .BI \-d \ debuglevel\fR]
32 .BI \-y \ passwdfile\fR]
36 .BI \-h \ ldaphost\fR]
38 .BI \-p \ ldapport\fR]
40 .BI \-P \ 2\fR\||\|\fI3\fR]
42 .BR \-O \ security-properties ]
65 is a shell-accessible interface to the
70 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
71 The entry information is read from standard input, from \fIfile\fP through
74 option, or from the command-line pair \fIdn\fP and
79 Remove old RDN values from the entry. Default is to keep old values.
82 Show what would be done, but don't actually change entries. Useful for
83 debugging in conjunction with -v.
86 Use verbose mode, with many diagnostics written to standard output.
89 Use Kerberos IV authentication instead of simple authentication. It is
90 assumed that you already have a valid ticket granting ticket.
92 must be compiled with Kerberos support for this option to have effect.
95 Same as \-k, but only does step 1 of the Kerberos IV bind. This is useful
96 when connecting to a slapd and there is no x500dsa.hostname principal
97 registered with your Kerberos Domain Controller(s).
100 Continuous operation mode. Errors are reported, but ldapmodrdn
101 will continue with modifications. The default is to exit after
105 Enable manage DSA IT control.
107 makes control critical.
110 Set the LDAP debugging level to \fIdebuglevel\fP.
113 compiled with LDAP_DEBUG defined for this option to have any effect.
116 Read the entry modification information from \fIfile\fP instead of from
117 standard input or the command-line.
120 Use simple authentication instead of SASL.
123 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
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 Use complete contents of \fIpasswdfile\fP as the password for
134 simple authentication.
137 Specify URI(s) referring to the ldap server(s).
140 Specify an alternate host on which the ldap server is running.
141 Deprecated in favor of -H.
144 Specify an alternate TCP port where the ldap server is listening.
145 Deprecated in favor of -H.
147 .BI \-P \ 2\fR\||\|\fI3
148 Specify the LDAP protocol version to use.
150 .BI \-O \ security-properties
151 Specify SASL security properties.
154 Enable SASL Interactive mode. Always prompt. Default is to prompt
158 Enable SASL Quiet mode. Never prompt.
161 Specify the authentication ID for SASL bind. The form of the ID
162 depends on the actual SASL mechanism used.
165 Specify the realm of authentication ID for SASL bind. The form of the realm
166 depends on the actual SASL mechanism used.
169 Specify the requested authorization ID for SASL bind.
171 must be one of the following formats:
173 .I <distinguished name>
179 Specify the SASL mechanism to be used for authentication. If it's not
180 specified, the program will choose the best mechanism the server knows.
183 Issue StartTLS (Transport Layer Security) extended operation. If you use
185 , the command will require the operation to be successful.
187 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
188 will replace the RDN of the entry specified by the DN, \fIdn\fP.
190 Otherwise, the contents of \fIfile\fP (or standard input if
193 flag is given) should consist of one or more entries.
196 Distinguished Name (DN)
197 Relative Distinguished Name (RDN)
200 One or more blank lines may be used to separate each DN/RDN pair.
202 Assuming that the file
204 exists and has the contents:
207 cn=Modify Me,dc=example,dc=com
214 ldapmodrdn -r -f /tmp/entrymods
217 will change the RDN of the "Modify Me" entry from "Modify Me" to
218 "The New Me" and the old cn, "Modify Me" will be removed.
221 Exit status is 0 if no errors occur. Errors result in a non-zero exit
222 status and a diagnostic message being written to standard error.
232 The OpenLDAP Project <http://www.openldap.org/>
235 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
237 is derived from University of Michigan LDAP 3.3 Release.