ldapmodrdn

 


 
 
 
 User Commands                                       ldapmodrdn(1)
 
 
 


NAME

ldapmodrdn - ldap modify entry RDN tool

SYNOPSIS

ldapmodrdn [ -r ] [ -n ] [ -v ] [ -c ] [ -d debuglevel ] [ -D binddn ] [ -w passwd ] [ -h ldaphost ] [ -M authentication ] [ -p ldapport ] [ -f file ] [ dn rdn ]

DESCRIPTION

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

OPTIONS

-r Remove old RDN values from the entry. By default, old values are kept. -n Show what would be done, but don't actually change entries. Useful in conjunction with -v for debug- ging. -v Use verbose mode, with diagnostics written to standard output. -c Continuous operation mode. Errors are reported, but ldapmodify continues with modifications. The default is to exit after reporting an error. -d debuglevel Set the LDAP debugging level. Useful values of debuglevel for ldapmodrdn are: 1 Trace 2 Packets 4 Arguments 32 Filters 128 Access control To request more than one category of debugging infor- mation, add the masks. For example, to request trace and filter information, specify a debuglevel of 33. -f file Read the entry modification information from file SunOS 5.8 Last change: 25 May 1998 1 User Commands ldapmodrdn(1) instead of from standard input or the command-line. -D binddn Use the distinguished name binddn to bind to the directory. -w passwd Use passwd as the password for authentication to the directory. -h ldaphost Specify an alternate host on which the slapd server is running. -M authentication Specifies the authentication mechanism used to bind to the directory. This option can have the value CRAM- MD5. The bind DN and bind password are mandatory with this option. -p ldapport Specify an alternate TCP port where the slapd server is listening. Input Format If the command-line arguments dn and rdn are given, rdn replaces the RDN of the entry specified by the DN, dn. Otherwise, the contents of file (or standard input if the - f option is not specified) must consist of one or more pair of lines: Distinguished Name (DN) Relative Distinguished Name (RDN) Use one or more blank lines to separate each DN/RDN pair. EXAMPLES The file /tmp/entrymods contains: cn=Modify Me, o=XYZ, c=US cn=The New Me The command: example% ldapmodify -r -f /tmp/entrymods changes the RDN of the "Modify Me" entry from "Modify Me" to "The New Me" and the old cn, "Modify Me" is removed.

ATTRIBUTES

SunOS 5.8 Last change: 25 May 1998 2 User Commands ldapmodrdn(1) See attributes(5) for a description of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWlldap (32-bit) | |_____________________________|_____________________________| | | SUNWldapx (64-bit) | |_____________________________|_____________________________| | Stability Level | Evolving | |_____________________________|_____________________________|

SEE ALSO

ldapadd(1), ldapdelete(1), ldapmodify(1), ldapsearch(1)

DIAGNOSTICS

Exit status is 0 if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. SunOS 5.8 Last change: 25 May 1998 3