1 .TH LDAPMODRDN 1 "10 November 1998" "OpenLDAP LDVERSION"
3 ldapmodrdn \- ldap modify entry RDN tool
19 .BI \-d \ debuglevel\fR]
27 .BI \-h \ ldaphost\fR]
29 .BI \-p \ ldapport\fR]
31 .BI \-P \ 2\fR\||\|\fI3\fR]
38 is a shell-accessible interface to the
43 opens a connection to an LDAP server, binds, and modifies the RDN of entries.
44 The entry information is read from standard input, from \fIfile\fP through
47 option, or from the command-line pair \fIdn\fP and
52 Remove old RDN values from the entry. Default is to keep old values.
55 Show what would be done, but don't actually change entries. Useful for
56 debugging in conjunction with -v.
59 Use verbose mode, with many diagnostics written to standard output.
62 Use Kerberos authentication instead of simple authentication. It is
63 assumed that you already have a valid ticket granting ticket.
65 must be compiled with KERBEROS defined for this option to have effect.
68 Same as \-k, but only does step 1 of the kerberos bind. This is useful
69 when connecting to a slapd and there is no x500dsa.hostname principal
70 registered with your kerberos servers.
73 Continuous operation mode. Errors are reported, but ldapmodify
74 will continue with modifications. The default is to exit after
78 Set the LDAP debugging level to \fIdebuglevel\fP.
81 compiled with LDAP_DEBUG defined for this option to have any effect.
84 Read the entry modification information from \fIfile\fP instead of from
85 standard input or the command-line.
88 Use \fIbinddn\fP to bind to the LDAP directory. \fIbinddn\fP should be
89 a string-represented DN as defined in RFC 1779.
92 Prompt for simple authentication.
93 This is used instead of specifying the password on the command line.
96 Use \fIpasswd\fP as the password for simple authentication.
99 Specify an alternate host on which the ldap server is running.
102 Specify an alternate TCP port where the ldap server is listening.
104 .BI \-P \ 2\fR\||\|\fI3
105 Specify the LDAP protocol version to use.
107 If the command-line arguments \fIdn\fP and \fIrdn\fP are given, \fIrdn\fP
108 will replace the RDN of the entry specified by the DN, \fIdn\fP.
110 Otherwise, the contents of \fIfile\fP (or standard input if
113 flag is given) should consist of one or more entries.
116 Distinguished Name (DN)
117 Relative Distinguished Name (RDN)
120 One or more blank lines may be used to separate each DN/RDN pair.
122 Assuming that the file
124 exists and has the contents:
127 cn=Modify Me, o=University of Michigan, c=US
134 ldapmodify -r -f /tmp/entrymods
137 will change the RDN of the "Modify Me" entry from "Modify Me" to
138 "The New Me" and the old cn, "Modify Me" will be removed.
141 Exit status is 0 if no errors occur. Errors result in a non-zero exit
142 status and a diagnostic message being written to standard error.
153 .IR "A String Representation of Distinguished Names",
156 ISODE Consortium, March 1995.
158 There is no interactive mode, but there probably should be.
161 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
163 is derived from University of Michigan LDAP 3.3 Release.