From: Robbie A. <ra...@ci...> - 2002-09-16 23:34:30
|
Do I need to modify ASN.pm for TreeDelete.pm? Doesn't look like it, but I want to make sure. Robbie Allen > -----Original Message----- > From: Graham Barr [mailto:gb...@po...] > Sent: Wednesday, September 11, 2002 8:31 AM > To: Robbie Allen > Cc: 'per...@li...' > Subject: Re: tree delete control > > > 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. > |