[Fedora-directory-users] Question on hierarchy tree deletion

Chun Tat David Chu beyonddc.storage at gmail.com
Thu Apr 17 18:01:19 UTC 2008


Hi group,

I've a question about deleting the hierarchy tree using the Fedora DS
provided command line utilities (e.g. ldapdelete, ldapsearch, ldapmodify and
etc).

Originally, I'm using the "ldapdelete" command from the openldapclient
package with the "-r" flag to do recursive delete on the hierarchy tree, but
I want to know if there's anyway I can achieve the same effect by using
command line utilities from the Fedora DS package.

My original thought is to use ldapsearch, set it to return only the "dn"
attribute and sorted by "createtimestamp" attribute.  Then use the returned
result and run the ldapdelete command.  Assuming a child entry must have a
later "createtimestamp" then parent entry.  However, the result returned
back from ldapsearch is in ascending order of the "createtimestamp"
attribute.

Is there a way to tell the ldapsearch command to sort returned result in
descending order?  or
Is there a more efficient way to delete a hierarchy tree through command
line?

Thanks!

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20080417/1af995d2/attachment.htm>


More information about the Fedora-directory-users mailing list