Restore a deleted user from Oracle Internet Directory

This post explains the steps to restore a deleted user from Oracle Internet Directory. The delete user will be available if the garbage collection is not executed and the tombstoned entry is not purged.

Steps to restore a deleted user from Oracle Internet Directory

To search the deleted user, execute the below ldapsearch command.

Syntax : ldapsearch -h OID_HOST -p OID_PORT -D “cn=orcladmin” -w  PASSWORD -L -b “” -s sub “objectclass=tombstone

 Example : ldapsearch -h localhost -p 3060 -D “cn=orcladmin” -w  Welcome1 -L -b “” -s sub “objectclass=tombstone

The user entry for testuser22 which is deleted from OID is returned.

 

ldif Restore a deleted user from Oracle Internet Directory

 

 

 

 

 

 

 

 

 

 

 

 

 

Note : If the OID garbage collection is executed, then the user data wont be available .
From this remove the entry “objectclass:tombstone” and entry for authPassword from this and load the ldif to OID .

To know about Oracle Internet Directory Garbage Collection Framework , check here

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>