develooper Front page | perl.ldap | Postings from October 2022

Re: NET::LDAP->new( async => 1)

Chris Ridd via perl-ldap
October 25, 2022 11:23
Re: NET::LDAP->new( async => 1)
Message ID:
I couldn’t see any examples either. However, if you look at the tests in the sources you’ll find a couple of very simple examples.


There’s another in but it doesn’t look helpful to me.

Remember you can always submit operations in parallel out of the box, without doing anything special. The only blocking comes when you want to check the results.

$res1 = $ldap->modify(“uid=user.0,ou=people,dc=example,dc=com”, […]);
$res2 = $ldap->modify(“uid=user.1,ou=people.dc=example,dc=com”, […]);
# etc

If you come up with a good async example, please raise a PR to add it to Examples.pod, or just add a new file in the contrib directory.



> On 21 Oct 2022, at 14:07, Stampfl, Burt via perl-ldap <> wrote:
> From: Stampfl, Burt < <>> 
> Sent: Friday, October 21, 2022 7:52 AM
> To: <>
> Cc: Stampfl, Burt < <>>
> Subject: NET::LDAP->new( async => 1)
> Hi, 
> I am looking for any information I can find (especially examples) of how to use the ‘async mode in NET::LDAP.
> The metacpan Net::LDAP page tells how to enable it but not how it is actually supported once enabled.
> The I’ve been searching the web for days and still can’t get this feature working.
> Any pointers to documentation and/or examples would be greatly appreciated.
> Thank you
> Burt Stampfl 
> W231 N2844 Roundy Circle Suite D,  Pewaukee, WI 53072 USA
> Work:    +1 262.901.6007
> Mobile: +1 847.638.1792
> <>
> <>
> <image001.jpg>
> "This e-mail message and any attachments are confidential and may be privileged. If you are not the intended recipient please notify AMSC immediately by replying to this message or by sending a message to <> and destroy all copies of this message and any attachments. Thank you." Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About