Using the command line

Use the idsldapmodrdn command to modify an RDNĀ® entry.

Procedure

  1. Rename an entry by doing the following action.
    Renaming an entry
    Type the following command to rename an entry, changing RDN from cn=Bob Garcia to cn=Robert Garcia:
    idsldapmodrdn -D adminDN -w adminPW 
    		-r "cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample" "cn=Robert Garcia"
    Note: The -r option causes the old name to be removed.
  2. Move an entry by doing the following action.
    Moving an entry
    Type the following command to move an entry, for example, moving Bob to a new department:
    idsldapmodrdn -D adminDN -w adminPW -s "ou=deptXYZ, ou=Austin, 
    		o=sample" "cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample" "cn=Bob Garcia"
    You can also type the following command to move an entry:
    idsldapmodify -D adminDN -w adminPW -i filename
    Where filename contains the following information:
    dn: cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample
    changetype: modrdn
    newrdn: cn=Bob Garcia
    deleteoldrdn: 0
    newsuperior: ou=deptXYZ, ou=Austin, o=sample
    Note: Renaming or moving an entry in a proxy environment is supported only if it does not move entries across partitions.
  3. Modify an attribute of an entry by doing the following action.
    Modifying attributes of an entry
    Type the following command to modify the attributes of an entry, for example, replacing the roomNumber attribute value:
    idsldapmodify -D adminDN -w adminPW -i filename
    Where filename contains the following information:
    dn: cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample
    changetype: modify
    replace: roomNumber
    roomNumber: 4B-014