DREK stands for Directory REpliKator; replicates one LDAP (sub)tree into another. Replaces attributes (base DN) to match the destination tree. Generates LDIF file which can be reviewed and imported by other means, like ldapmodify.
This utility will provide grep-like functionality to return multi-line (record) matches for blank-line deliminated files such as LDIF files used by LDAP. A match on any line will return all lines from the previous blank line until the following one.