From: Graham B. <gb...@po...> - 2000-08-17 16:45:51
|
On Thu, Aug 17, 2000 at 05:24:34PM +0100, John Berthels wrote: > > > Not really, not any more. Yes I started it and I may have written most > > of whats there. But I see most of it's future development coming > > from others, hopefully I can be a good guide in the process. > > Yes. Someone needs to enforce taste and decency otherwise things become a > mess. I hope to be that person. > > > > unshift @dn, map { $_->dn() } $msg->entries; > > > > No. base to ->search can be an Entry object. In which case ->search > > will call ->dn for you. > > Hmm. Has that changed recently in CVS? I actually tried it and got a 'Bad > DN Syntax' error. But I was using an old version of Net::LDAP I think. Veru old. It went in version 0.16, which was when I changed from Convert::BER to Convert::ASN1 > > > Or perhaps you mean: > > > > > > unshift @dn, $ldap->list( $dn ); > > > > > > instead :-) > > > > Maybe, but then I loose the Message, so I don't know if there are no > > children of if there was an error. I guess I could check $@. > > Or save the original DN arg as $dn_orig and: > > return !$ldap->exists( $dn_orig ); > > at the end. But not existing may not be the only reason for failure. Graham. |