[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: List of all leaves for a node?



Adam Haberlach wrote:
> 
>         I cannot seem to delete one of my entries because
> it is a "non-leaf node" even though I intentionally tagged
> everything I added below it so I could find it and delete it.
> 
>         I don't know if this is a faux-paus similar to asking
> how to get rows in the order they were inserted from a SQL
> database, but is there a search string that will give me all
> of the entries under a specific context?
> 
> --
> Adam Haberlach             | "A farm tractor is not a motorcycle."
> adam@newsnipple.com        |   --California DMV 1999 Motorcycle Driver Handbook
> http://www.newsnipple.com/ |

Have you tried a subtree search rooted at the node you're trying to
delete. For example if your node to be deleted is "ou=ugg,o=someplace"
you might do 
ldapsearch -b"ou=ugg,o=somplace" -s subtree '(objectclass=*)'
You probably should bind as the rootdn as well.
Ian

-- 
Ian Logan
Computing & Networking
New Mexico State University
Email: ian@nmsu.edu Phone: 505-646-6034 Fax: 505-646-5278