Error on Constants.pm with Perl-LDAP 0.4001

Clément OUDOT <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Hello,

I am a developer of LemonLDAP::NG, a WebSSO product written in Perl,
that uses a lot Perl-LDAP. So first, thanks for all the work done in
this program!

We use Perl-LDAP for a long time, but I have a problem with latest
release 0.4001 (by the way, the irelease is not published on the
website, only on CPAN).

The error I get is :

Lemonldap::NG::Portal::AuthLDAP load error: Modification of a
read-only value attempted at
/usr/local/share/perl/5.10.1/Net/LDAP/Constant.pm line 13


This was working with Perl-LDAP 0.39, and I think the error is linked
to this modification:

http://git.goingon.net/?p=perl-ldap.git;a=blobdiff;f=lib/Net/LDAP/Constant.pm;h=972eba1eecc4f9e68f728f514bb4097d39c2976c;hp=7098d8ca55f8256fa0197fbb9a20b1e989a893b6;hb=e7669f8b962a09cf1340397516e4d6c88cf83c0f;hpb=4a036b2268fcef97b8d7c02ee974bdc301210d4f


As pointed by Debian packagers in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577340, a workaround
can be to add 'local $_' line 12.

Do you think this can be corrected in Perl-LDAP?


Thanks for your help,

Clément.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.