]> git.sur5r.net Git - openldap/blob - doc/man/man1/ldapmodrdn.1
Move default slurpd directory to $(LOCALSTATEDIR)/openldap-slurp.
[openldap] / doc / man / man1 / ldapmodrdn.1
1 .TH LDAPMODRDN 1 "12 July 2000" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2000 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 \ 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 \ username\fR]
47 [\c
48 .BR \-x ]
49 [\c
50 .BI \-X \ authzid\fR]
51 [\c
52 .BI \-Y \ mech\fR]
53 [\c
54 .BR \-Z[Z] ]
55 [\c
56 .BI \-f \ file\fR]
57 [\c
58 .I dn  rdn\fR]
59 .SH DESCRIPTION
60 .B ldapmodrdn
61 is a shell-accessible interface to the
62 .BR ldap_modrdn2 (3)
63 library call.
64 .LP
65 .B ldapmodrdn
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
68 the use of the
69 .RI \- f
70 option, or from the command-line pair \fIdn\fP and
71 \fIrdn\fP.
72 .SH OPTIONS
73 .TP
74 .B \-r
75 Remove old RDN values from the entry.  Default is to keep old values.
76 .TP
77 .B \-n
78 Show what would be done, but don't actually change entries.  Useful for
79 debugging in conjunction with -v.
80 .TP
81 .B \-v
82 Use verbose mode, with many diagnostics written to standard output.
83 .TP
84 .B \-k
85 Use Kerberos authentication instead of simple authentication.  It is
86 assumed that you already have a valid ticket granting ticket.
87 .B ldapmodrdn
88 must be compiled with KERBEROS defined for this option to have effect.
89 .TP
90 .B \-K
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.
94 .TP
95 .B \-C
96 Automatically chase referrals.
97 .TP
98 .B \-c
99 Continuous operation mode.  Errors  are  reported,  but ldapmodify
100 will  continue  with  modifications.   The default is to exit after
101 reporting an error.
102 .TP
103 .B \-M[M]
104 Enable manage DSA IT control.
105 .B \-MM
106 makes control critical.
107 .TP
108 .B \-d debuglevel
109 Set the LDAP debugging level to \fIdebuglevel\fP.
110 .B ldapmodrdn
111 must be
112 compiled with LDAP_DEBUG defined for this option to have any effect.
113 .TP
114 .B \-f file
115 Read the entry modification information from \fIfile\fP instead of from
116 standard input or the command-line.
117 .TP
118 .B \-x 
119 Use simple authentication instead of SASL.
120 .TP
121 .B \-D binddn
122 Use \fIbinddn\fP to bind to the LDAP directory. \fIbinddn\fP should be
123 a string-represented DN as defined in RFC 1779.
124 .TP
125 .B \-W
126 Prompt for simple authentication.
127 This is used instead of specifying the password on the command line.
128 .TP
129 .B \-w passwd
130 Use \fIpasswd\fP as the password for simple authentication.
131 .TP
132 .B \-h ldaphost
133 Specify an alternate host on which the ldap server is running.
134 .TP
135 .B \-p ldapport
136 Specify an alternate TCP port where the ldap server is listening.
137 .TP
138 .BI \-P \ 2\fR\||\|\fI3
139 Specify the LDAP protocol version to use.
140 .TP
141 .BI \-O \ security-properties
142 Specify SASL security properties.
143 .TP
144 .B \-I
145 Enable SASL Interactive mode.  Always prompt.  Default is to prompt
146 only as needed.
147 .TP
148 .B \-Q
149 Enable SASL Quiet mode.  Never prompt.
150 .TP
151 .BI \-U \ username
152 Specify the username for SASL bind. The syntax of the username depends on the
153 actual SASL mechanism used.
154 .TP
155 .BI \-X \ authzid
156 Specify the requested authorization ID for SASL bind.
157 .I authzid
158 must be one of the following formats:
159 .B dn:\c
160 .I <distinguished name>
161 or
162 .B u:\c
163 .I <username>
164 .TP
165 .BI \-Y \ mech
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.
168 .TP
169 .B \-Z[Z]
170 Issue StartTLS (Transport Layer Security) extended operation. If you use
171 .B \-ZZ\c
172 , the command will require the operation to be successful.
173 .SH INPUT FORMAT
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.
176 .LP
177 Otherwise, the contents of \fIfile\fP (or standard input if
178 no
179 .RI \- f
180 flag is given) should consist of one or more entries.
181 .LP
182 .nf
183     Distinguished Name (DN)
184     Relative Distinguished Name (RDN)
185 .fi
186 .LP
187 One or more blank lines may be used to separate each DN/RDN pair.
188 .SH EXAMPLE
189 Assuming that the file
190 .B /tmp/entrymods
191 exists and has the contents:
192 .LP
193 .nf
194     cn=Modify Me, dc=OpenLDAP, dc=org
195     cn=The New Me
196 .fi
197 .LP
198 the command:
199 .LP
200 .nf
201     ldapmodify -r -f /tmp/entrymods
202 .fi
203 .LP
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.
206 .LP
207 .SH DIAGNOSTICS
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.
210 .SH "SEE ALSO"
211 .BR ldapadd (1),
212 .BR ldapdelete (1),
213 .BR ldapmodify (1),
214 .BR ldapsearch (1),
215 .BR ldap.conf (5),
216 .BR ldap (3),
217 .BR ldap_modrdn2 (3)
218 .LP
219 Kille, S.,
220 .IR "A String Representation of Distinguished Names",
221 .SM RFC
222 1779,
223 ISODE Consortium, March 1995.
224 .SH BUGS
225 There is no interactive mode, but there probably should be.
226 .SH AUTHOR
227 The OpenLDAP Project <http://www.openldap.org/>
228 .SH ACKNOWLEDGEMENTS
229 .B      OpenLDAP
230 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
231 .B      OpenLDAP
232 is derived from University of Michigan LDAP 3.3 Release.