On 6 Apr 2004, at 22:45, Don Miller wrote:
I am able to do a persistent search against the server but I cannot figure out how to use/extract population of the ENTRYCHANGE control. I was wondering if anyone had any complete examples about how to start the search properly to return the ENTRYCHANGE control and how to use it. I am setting the returnECs but it doesn't appear to be returning anything.
Ah, yes. This is one area where works is needed. Currently Net::LDAP only provides access to controls on the last message. The attached patch should allow you to do call the ->control method on $message from within a callback and get the controls that came with the current message
sub check_home { my $message = shift; my $entry = shift; print $entry->dn,"\n"; }
$result->pop_entry;
That should probably be inside the callback as $message->pop_entry;
Graham.