Patent ID: 7509310

Claim:
A method of online automatic relocation for an LDAP entry and one of a subtree and a partial subtree across directory partitions from one backend partition server to another partition server without bringing any of the servers down, the method comprising: locking a plurality of entries in a source subtree of a source partition server using lockEntry Write ExOp online, without bringing any servers down, such that the plurality of entries can be searched, but not updated during a relocation process; reading the plurality of entries in the locked source subtree of the source partition server by performing a client LDAP SEARCH operation to obtain entry results; storing the entry results of the LDAP SEARCH operation locally in a relocation tool; fetching the stored entry results from the LDAP SEARCH one at a time; creating an equivalent newly formatted LDAP entry for each one of the LDAP SEARCH entry results for adding in a target partition server, wherein creating an equivalent newly formatted LDAP entry including modifying a distinguished name (DN) of each one of the LDAP SEARCH entry results in accordance with a target location of each equivalent LDAP entry in the target partition server, and adding attribute-value pairs in each equivalent LDAP entry in accordance with the attribute-pair value in each one of the LDAP SEARCH entry results in the source partition server and schema rules of the target partition server; adding each newly created LDAP entry in the target partition server, wherein the adding is done by parsing command line parameters and binding to both the source partition server and the target partition server using credentials specified on a command line; locking each newly created LDAP entry being one of a target subtree and a partial target subtree; repeating the fetching, the adding, and the locking of newly created LDAP entries until there are no more entries in the LDAP SEARCH entry results; and removing the lock on the target subtree using lockEntry remove ExOp, if the scope of relocation is root, then updating a suffix entry as a newly added independent suffix subtree in a configuration of the target partition server and issuing dynamic updates of the configuration so that the newly added independent suffix subtree becomes active.