I'm playing with the callbacks, and decided to do a mass extinction on my
directory, by doing a "search and delete" operation.
So I try:
my $res=$ldap->search(callback=\&myCallback);
sub myCallback
{
my $mesg = shift;
my $entry = shift;
$entry->delete;
$entry->update($ldap);
printf "%5d) Deleted (%s)\n", $count, $entry->dn;
}
It kind of works, but it deletes only a part of the entries. :-(
Why?
thx
Denis
--
T-Mobile Austria GmbH,
Information Technologies / Services
Knowledge Management & Process Automation
Dr. Denis Havlik, eMail:
[EMAIL PROTECTED]
Rennweg 97-99, BT2E0304031 Phone: +43-1-79-585/6237
A-1030 Vienna Fax:
+43-1-79-585/6584