]> git.sur5r.net Git - openldap/blob - doc/man/man1/ldapmodrdn.1
Generate man page date from version.sh
[openldap] / doc / man / man1 / ldapmodrdn.1
1 .TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 ldapmodrdn \- LDAP rename entry tool
7 .SH SYNOPSIS
8 .B ldapmodrdn
9 [\c
10 .BR \-r ]
11 [\c
12 .BR \-n ]
13 [\c
14 .BR \-v ]
15 [\c
16 .BR \-k ]
17 [\c
18 .BR \-K ]
19 [\c
20 .BR \-c ]
21 [\c
22 .BR \-C ]
23 [\c
24 .BR \-M[M] ]
25 [\c
26 .BI \-d \ debuglevel\fR]
27 [\c
28 .BI \-D \ binddn\fR]
29 [\c
30 .BR \-W ]
31 [\c
32 .BI \-w \ passwd\fR]
33 [\c
34 .BI \-H \ ldapuri\fR]
35 [\c
36 .BI \-h \ ldaphost\fR]
37 [\c
38 .BI \-p \ ldapport\fR]
39 [\c
40 .BI \-P \ 2\fR\||\|\fI3\fR]
41 [\c
42 .BR \-O \ security-properties ]
43 [\c
44 .BR \-I ]
45 [\c
46 .BR \-Q ]
47 [\c
48 .BI \-U \ authcid\fR]
49 [\c
50 .BR \-x ]
51 [\c
52 .BI \-X \ authzid\fR]
53 [\c
54 .BI \-Y \ mech\fR]
55 [\c
56 .BR \-Z[Z] ]
57 [\c
58 .BI \-f \ file\fR]
59 [\c
60 .I dn  rdn\fR]
61 .SH DESCRIPTION
62 .B ldapmodrdn
63 is a shell-accessible interface to the
64 .BR ldap_modrdn2 (3)
65 library call.
66 .LP
67 .B ldapmodrdn
68 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
69 The entry information is read from standard input, from \fIfile\fP through
70 the use of the
71 .RI \- f
72 option, or from the command-line pair \fIdn\fP and
73 \fIrdn\fP.
74 .SH OPTIONS
75 .TP
76 .B \-r
77 Remove old RDN values from the entry.  Default is to keep old values.
78 .TP
79 .B \-n
80 Show what would be done, but don't actually change entries.  Useful for
81 debugging in conjunction with -v.
82 .TP
83 .B \-v
84 Use verbose mode, with many diagnostics written to standard output.
85 .TP
86 .B \-k
87 Use Kerberos IV authentication instead of simple authentication.  It is
88 assumed that you already have a valid ticket granting ticket.
89 .B ldapmodrdn
90 must be compiled with Kerberos support for this option to have effect.
91 .TP
92 .B \-K
93 Same as \-k, but only does step 1 of the Kerberos IV bind.  This is useful
94 when connecting to a slapd and there is no x500dsa.hostname principal
95 registered with your Kerberos Domain Controller(s).
96 .TP
97 .B \-C
98 Automatically chase referrals.
99 .TP
100 .B \-c
101 Continuous operation mode.  Errors  are  reported,  but ldapmodify
102 will  continue  with  modifications.   The default is to exit after
103 reporting an error.
104 .TP
105 .B \-M[M]
106 Enable manage DSA IT control.
107 .B \-MM
108 makes control critical.
109 .TP
110 .B \-d debuglevel
111 Set the LDAP debugging level to \fIdebuglevel\fP.
112 .B ldapmodrdn
113 must be
114 compiled with LDAP_DEBUG defined for this option to have any effect.
115 .TP
116 .B \-f file
117 Read the entry modification information from \fIfile\fP instead of from
118 standard input or the command-line.
119 .TP
120 .B \-x 
121 Use simple authentication instead of SASL.
122 .TP
123 .B \-D binddn
124 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
125 .TP
126 .B \-W
127 Prompt for simple authentication.
128 This is used instead of specifying the password on the command line.
129 .TP
130 .B \-w passwd
131 Use \fIpasswd\fP as the password for simple authentication.
132 .TP
133 .BI \-H \ ldapuri
134 Specify URI(s) referring to the ldap server(s).
135 .TP
136 .BI \-h \ ldaphost
137 Specify an alternate host on which the ldap server is running.
138 Deprecated in favor of -H.
139 .TP
140 .BI \-p \ ldapport
141 Specify an alternate TCP port where the ldap server is listening.
142 Deprecated in favor of -H.
143 .TP
144 .BI \-P \ 2\fR\||\|\fI3
145 Specify the LDAP protocol version to use.
146 .TP
147 .BI \-O \ security-properties
148 Specify SASL security properties.
149 .TP
150 .B \-I
151 Enable SASL Interactive mode.  Always prompt.  Default is to prompt
152 only as needed.
153 .TP
154 .B \-Q
155 Enable SASL Quiet mode.  Never prompt.
156 .TP
157 .BI \-U \ authcid
158 Specify the authentication ID for SASL bind. The form of the ID
159 depends on the actual SASL mechanism used.
160 .TP
161 .BI \-X \ authzid
162 Specify the requested authorization ID for SASL bind.
163 .I authzid
164 must be one of the following formats:
165 .B dn:\c
166 .I <distinguished name>
167 or
168 .B u:\c
169 .I <username>
170 .TP
171 .BI \-Y \ mech
172 Specify the SASL mechanism to be used for authentication. If it's not
173 specified, the program will choose the best mechanism the server knows.
174 .TP
175 .B \-Z[Z]
176 Issue StartTLS (Transport Layer Security) extended operation. If you use
177 .B \-ZZ\c
178 , the command will require the operation to be successful.
179 .SH INPUT FORMAT
180 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
181 will replace the RDN of the entry specified by the DN, \fIdn\fP.
182 .LP
183 Otherwise, the contents of \fIfile\fP (or standard input if
184 no
185 .RI \- f
186 flag is given) should consist of one or more entries.
187 .LP
188 .nf
189     Distinguished Name (DN)
190     Relative Distinguished Name (RDN)
191 .fi
192 .LP
193 One or more blank lines may be used to separate each DN/RDN pair.
194 .SH EXAMPLE
195 Assuming that the file
196 .B /tmp/entrymods
197 exists and has the contents:
198 .LP
199 .nf
200     cn=Modify Me,dc=example,dc=com
201     cn=The New Me
202 .fi
203 .LP
204 the command:
205 .LP
206 .nf
207     ldapmodify -r -f /tmp/entrymods
208 .fi
209 .LP
210 will change the RDN of the "Modify Me" entry from "Modify Me" to
211 "The New Me" and the old cn, "Modify Me" will be removed.
212 .LP
213 .SH DIAGNOSTICS
214 Exit status is 0 if no errors occur.  Errors result in a non-zero exit
215 status and a diagnostic message being written to standard error.
216 .SH "SEE ALSO"
217 .BR ldapadd (1),
218 .BR ldapdelete (1),
219 .BR ldapmodify (1),
220 .BR ldapsearch (1),
221 .BR ldap.conf (5),
222 .BR ldap (3),
223 .BR ldap_modrdn2 (3)
224 .SH AUTHOR
225 The OpenLDAP Project <http://www.openldap.org/>
226 .SH ACKNOWLEDGEMENTS
227 .B      OpenLDAP
228 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
229 .B      OpenLDAP
230 is derived from University of Michigan LDAP 3.3 Release.