]> git.sur5r.net Git - openldap/blob - doc/man/man1/ldapmodrdn.1
explicitly mention the format of the output (ITS#6146)
[openldap] / doc / man / man1 / ldapmodrdn.1
1 .TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2009 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 .BI \-s \ newsup\fR]
13 [\c
14 .BR \-n ]
15 [\c
16 .BR \-v ]
17 [\c
18 .BR \-c ]
19 [\c
20 .BR \-M[M] ]
21 [\c
22 .BI \-d \ debuglevel\fR]
23 [\c
24 .BI \-D \ binddn\fR]
25 [\c
26 .BR \-W ]
27 [\c
28 .BI \-w \ passwd\fR]
29 [\c
30 .BI \-y \ passwdfile\fR]
31 [\c
32 .BI \-H \ ldapuri\fR]
33 [\c
34 .BI \-h \ ldaphost\fR]
35 [\c
36 .BI \-p \ ldapport\fR]
37 [\c
38 .BI \-P \ 2\fR\||\|\fI3\fR]
39 [\c
40 .BR \-O \ security-properties ]
41 [\c
42 .BR \-I ]
43 [\c
44 .BR \-Q ]
45 [\c
46 .BI \-U \ authcid\fR]
47 [\c
48 .BI \-R \ realm\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_rename (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 .BI \-s \ newsup
80 Specify a new superior entry. (I.e., move the target entry and make it a
81 child of the new superior.)  This option is not supported in LDAPv2.
82 .TP
83 .B \-n
84 Show what would be done, but don't actually change entries.  Useful for
85 debugging in conjunction with -v.
86 .TP
87 .B \-v
88 Use verbose mode, with many diagnostics written to standard output.
89 .TP
90 .B \-c
91 Continuous operation mode.  Errors  are  reported,  but ldapmodrdn
92 will  continue  with  modifications.   The default is to exit after
93 reporting an error.
94 .TP
95 .B \-M[M]
96 Enable manage DSA IT control.
97 .B \-MM
98 makes control critical.
99 .TP
100 .B \-d debuglevel
101 Set the LDAP debugging level to \fIdebuglevel\fP.
102 .B ldapmodrdn
103 must be
104 compiled with LDAP_DEBUG defined for this option to have any effect.
105 .TP
106 .B \-f file
107 Read the entry modification information from \fIfile\fP instead of from
108 standard input or the command-line.
109 .TP
110 .B \-x 
111 Use simple authentication instead of SASL.
112 .TP
113 .B \-D binddn
114 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
115 For SASL Binds, the server is expected to ignore this value.
116 .TP
117 .B \-W
118 Prompt for simple authentication.
119 This is used instead of specifying the password on the command line.
120 .TP
121 .B \-w passwd
122 Use \fIpasswd\fP as the password for simple authentication.
123 .TP
124 .BI \-y \ passwdfile
125 Use complete contents of \fIpasswdfile\fP as the password for
126 simple authentication.
127 .TP
128 .BI \-H \ ldapuri
129 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
130 fields are allowed; a list of URI, separated by whitespace or commas
131 is expected.
132 .TP
133 .BI \-h \ ldaphost
134 Specify an alternate host on which the ldap server is running.
135 Deprecated in favor of -H.
136 .TP
137 .BI \-p \ ldapport
138 Specify an alternate TCP port where the ldap server is listening.
139 Deprecated in favor of -H.
140 .TP
141 .BI \-P \ 2\fR\||\|\fI3
142 Specify the LDAP protocol version to use.
143 .TP
144 .BI \-O \ security-properties
145 Specify SASL security properties.
146 .TP
147 .B \-I
148 Enable SASL Interactive mode.  Always prompt.  Default is to prompt
149 only as needed.
150 .TP
151 .B \-Q
152 Enable SASL Quiet mode.  Never prompt.
153 .TP
154 .BI \-U \ authcid
155 Specify the authentication ID for SASL bind. The form of the ID
156 depends on the actual SASL mechanism used.
157 .TP
158 .BI \-R \ realm
159 Specify the realm of authentication ID for SASL bind. The form of the realm
160 depends on the actual SASL mechanism used.
161 .TP
162 .BI \-X \ authzid
163 Specify the requested authorization ID for SASL bind.
164 .I authzid
165 must be one of the following formats:
166 .B dn:\c
167 .I <distinguished name>
168 or
169 .B u:\c
170 .I <username>
171 .TP
172 .BI \-Y \ mech
173 Specify the SASL mechanism to be used for authentication. If it's not
174 specified, the program will choose the best mechanism the server knows.
175 .TP
176 .B \-Z[Z]
177 Issue StartTLS (Transport Layer Security) extended operation. If you use
178 .B \-ZZ\c
179 , the command will require the operation to be successful.
180 .SH INPUT FORMAT
181 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
182 will replace the RDN of the entry specified by the DN, \fIdn\fP.
183 .LP
184 Otherwise, the contents of \fIfile\fP (or standard input if
185 no
186 .RI \- f
187 flag is given) should consist of one or more entries.
188 .LP
189 .nf
190     Distinguished Name (DN)
191     Relative Distinguished Name (RDN)
192 .fi
193 .LP
194 One or more blank lines may be used to separate each DN/RDN pair.
195 .SH EXAMPLE
196 Assuming that the file
197 .B /tmp/entrymods
198 exists and has the contents:
199 .LP
200 .nf
201     cn=Modify Me,dc=example,dc=com
202     cn=The New Me
203 .fi
204 .LP
205 the command:
206 .LP
207 .nf
208     ldapmodrdn -r -f /tmp/entrymods
209 .fi
210 .LP
211 will change the RDN of the "Modify Me" entry from "Modify Me" to
212 "The New Me" and the old cn, "Modify Me" will be removed.
213 .LP
214 .SH DIAGNOSTICS
215 Exit status is 0 if no errors occur.  Errors result in a non-zero exit
216 status and a diagnostic message being written to standard error.
217 .SH "SEE ALSO"
218 .BR ldapadd (1),
219 .BR ldapdelete (1),
220 .BR ldapmodify (1),
221 .BR ldapsearch (1),
222 .BR ldap.conf (5),
223 .BR ldap (3),
224 .BR ldap_rename (3)
225 .SH AUTHOR
226 The OpenLDAP Project <http://www.openldap.org/>
227 .SH ACKNOWLEDGEMENTS
228 .so ../Project