From: Christoph N. <en...@ap...> - 2001-05-31 15:26:55
|
On Thu, 31 May 2001, Graham Barr wrote: > On Thu, May 31, 2001 at 08:12:39AM -0500, Clif Harden wrote: > > > > > > Entry will not be defined on the last call, so make sure you check it is defined. > > > Also to save memoery you need to tell Net::LDAP to remove it from the list. > > > > > > sub check_oracle { > > > my ($mesg, $entry) = @_; > > > > > > if ($entry and $entry->isa('Net::LDAP::Entry')) { > > > $entry->dump(); > > > $mesg->pop_entry; > > > } > > > } > > > > > > Graham. > > > > > > > > > > Graham, > > > > We need to document entry->dump method. > > I do not see it listed in the online documentation. > > It needs to be fixed first to use Net::LDAP::LDIF > > > The mesg->pop_entry method probably needs to be listed in the > > Message documentation too, I could currently only find it in the > > Seach documentation. > > No, Net::LDAP::Search is the right place. It is not a method in > Net::LDAP::Message. Net::LDAP::Search is a sub-class of Net::LDAP::Message > that is returned by ->search. It is here that the pop_entry method > is defined. > > Graham. > > > > > This info will probably be put into the FAQ in a new callback section. > > I think an explaination of how to create a callback that removes each entry as it comes should definitely be put in the FAQ. I recall having to read through the source code in order to figure this out before. Knowing how to do this is indespensible if one needs to process large numbers of entries from LDAP. - Christoph > > Regards, > > > > Clif Harden > > > > |