Using the command line
Use the idsldapmodrdn command to modify an RDNĀ® entry.
Procedure
- Rename an entry by doing the following action.
- Renaming an entry
- Type the following command to rename an entry, changing RDN from
cn=Bob Garciatocn=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.
- 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:
You can also type the following command to move an entry:idsldapmodrdn -D adminDN -w adminPW -s "ou=deptXYZ, ou=Austin, o=sample" "cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample" "cn=Bob Garcia"
Where filename contains the following information:idsldapmodify -D adminDN -w adminPW -i filenamedn: cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample changetype: modrdn newrdn: cn=Bob Garcia deleteoldrdn: 0 newsuperior: ou=deptXYZ, ou=Austin, o=sampleNote: Renaming or moving an entry in a proxy environment is supported only if it does not move entries across partitions.
- 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:
Where filename contains the following information:idsldapmodify -D adminDN -w adminPW -i filenamedn: cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample changetype: modify replace: roomNumber roomNumber: 4B-014