You can use the command line to copy an entry. The copy
inherits all the attributes of the original entry.
Procedure
- Search to get the current entry back in LDIF form. Run
the following command.
idsldapsearch -L -s base -b "cn=Bob Garcia,
ou=deptABC, ou=Austin, o=sample" (objectclass=*)
Returns the following information:
dn: cn=Bob Garcia, ou=deptABC, ou=Austin, o=sample
cn: Bob Garcia
cn: Robert Garcia
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
objectclass: top
sn: Garcia
roomNumber: 4B-014
- Edit the entry to change the name and room number in the
new entry:
DNdn: Matt Morris, ou=deptABC, ou=Austin, o=sample
cn: Matt Morris
cn: Matthew Morris
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
objectclass: top
sn: Morris
roomNumber: 2B-001
- Add the new entry. Run the following command:
idsldapadd -D adminDN -w adminPW -i
filename