[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-ldap-dev
Subject: Re: Net::LDAP Recursive Delete
From: Graham Barr <gbarr () pobox ! com>
Date: 2002-12-29 10:50:58
[Download RAW message or body]
On Sat, Dec 28, 2002 at 04:38:15PM +0000, Chris Ridd wrote:
> On 24/12/02 2:05 am, Eric Nichols <eric.nichols@dir-wizards.com> 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.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic