NAME

ldapmodrdn - LDAP rename entry tool

SYNOPSIS

ldapmodrdn [-r] [-s newsup] [-n] [-v] [-c] [-M[M]] [-d debuglevel] [-D binddn] [-W] [-w passwd] [-y passwdfile] [-H ldapuri] [-h ldaphost] [-p ldapport] [-P 2|_3] [-O security-properties] [-I] [-Q] [-U authcid] [-R realm] [-x] [-X authzid] [-Y mech] [-Z[Z]] [-f file] [dn rdn]

DESCRIPTION

ldapmodrdn is a shell-accessible interface to the ldap_rename(3) library call.

ldapmodrdn opens a connection to an LDAP server, binds, and modifies the RDN of entries. The entry information is read from standard input, from _f_i_l_e through the use of the option, or from the command-line pair _d_n and _r_d_n.

OPTIONS

-r
Remove old RDN values from the entry. Default is to keep old values.
-s newsup
Specify a new superior entry. (I.e., move the target entry and make it a child of the new superior.) This option is not supported in LDAPv2.
-n
Show what would be done, but don't actually change entries. Useful for debugging in conjunction with -v.
-v
Use verbose mode, with many diagnostics written to standard output.
-c
Continuous operation mode. Errors are reported, but ldapmodrdn will continue with modifications. The default is to exit after reporting an error.
-M[M]
Enable manage DSA IT control. -MM makes control critical.
-d debuglevel
Set the LDAP debugging level to _d_e_b_u_g_l_e_v_e_l. ldapmodrdn must be compiled with LDAP_DEBUG defined for this option to have any effect.
-f file
Read the entry modification information from _f_i_l_e instead of from standard input or the command-line.
-x
Use simple authentication instead of SASL.
-D binddn
Use the Distinguished Name _b_i_n_d_d_n to bind to the LDAP directory.
-W
Prompt for simple authentication. This is used instead of specifying the password on the command line.
-w passwd
Use _p_a_s_s_w_d as the password for simple authentication.
-y passwdfile
Use complete contents of _p_a_s_s_w_d_f_i_l_e as the password for simple authentication.
-H ldapuri
Specify URI(s) referring to the ldap server(s); only the protocol/host/port fields are allowed; a list of URI, separated by whitespace or commas is expected.
-h ldaphost
Specify an alternate host on which the ldap server is running. Deprecated in favor of -H.
-p ldapport
Specify an alternate TCP port where the ldap server is listening. Deprecated in favor of -H.
_<_b_>_-_P_<_/_b_>_<_i_> _2|_3_<_/_i_> _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