On Tue, Sep 10, 2002 at 09:50:05PM -0700, Robbie Allen wrote:
> Active Directory supports the tree delete control, which was defined as an
> internet draft (draft-armijo-ldap-treedelete) but eventually expired. It is
> pretty straightforward to use:
>
> my $treedel = Net::LDAP::Control->new(
> type => "1.2.840.113556.1.4.805",
> value => '',
> critical => 0,
> );
> $rc = $ldap->delete($dn_to_delete, control => [ $treedel ]);
Actually you can just do
$rc = $ldap->delete($dn_to_delete, control => { type => LDAP_CONTROL_TREE_DELETE });
> And I could make an Net::LDAP::Control::TreeDelete module out of it. Just
> wanted to check first to see if anyone would object since it is not defined
> in an RFC (yet).
Fine by me.
At some point I plan to have classes for all common controls that are defined
by the most popular servers.
Graham.
|