From: Graham B. <gb...@po...> - 2002-12-29 10:51:47
|
On Sat, Dec 28, 2002 at 04:38:15PM +0000, Chris Ridd wrote: > On 24/12/02 2:05 am, Eric Nichols <eri...@di...> wrote: > > As far as I know the Net::LDAP::Entry does not do recursive deletes. > > You'll need to write a recursive function. If you need one let me know. > > I've got one laying around here somewhere :) > > Net::LDAP::Entry's got nothing to do with it - the LDAP protocol itself > doesn't have recursive deletes. There may be some proprietary controls on > some servers which permit it, but in general you'll have to write something > yourself. There was a tree delete control specified in a draft rfc that expired. AD supports it, others may too. use Net::LDAP::Constants qw(LDAP_CONTROL_TREE_DELETE); $ldap->delete($dn_to_delete, control => { type => LDAP_CONTROL_TREE_DELETE }); Graham. |