Hi, folks
I'm somewhat lost with "async" option. I thought that with "async" I'll be
able to use the data as they come. In particular, I though that this code:
my $Users = $Ldap->search(async=>1,filter=>'(uid=*)',
scope=>'sub', base=>$base, attrs=>'1.1');
print "HERE!!!\n";
foreach my $KMUser ($KMUsers->entries) {
printf "Found %s\n", $KMUser->dn;
}
Will start spitting out "Found <dn>" lines immediately. In fact, it
doesn't - there is a rather long sleep period between "Here", and the
first "Found" line.
Is it because of the "foreach" loop?
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