[Date Prev][Date Next]
Re: Deleting non-leaf entries from LDAP.
Hi all ,
Thank you all for the responses.
I would like to do this in my program so using ldapdelete is not possible.
So I am left with the only option of deleting all the leaf entries
That looks like a very slow process to delete entries one by one :-( ...
Thanks and Regards
Martin Smith wrote:
> I believe there's an "-r" switch in ldapdelete that does the necessary
> Michael Ströder wrote:
> > Christian Pohl wrote:
> > > Sridhar Bandi wrote:
> > >
> > >> Can someone let me know how to delete entries which
> > >> are under a non-leaf entry and that non-leaf entry also.
> > >
> > > You have to delete it all one by one starting at the leaves up to the
> > > "non-leave".
> > Note that when coding such a thing the operational attribute
> > 'hasSubordinates' available in recent OpenLDAP 2.1.x is quite handy.
> > You have to explicitly request this operational attribute.
> > (There are similar operational attributes on other LDAP servers:
> > 'numSubordinates' on Netscape/Sun/iPlanet, 'subordinateCount' on
> > Novell eDirectory).
> > Ciao, Michael.
org:Hewlett Packard;SNSL India-ISEC