Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Crash with earlier version of perl-LDAP #52

Open
ikedas opened this issue Mar 1, 2019 · 1 comment
Open

Crash with earlier version of perl-LDAP #52

ikedas opened this issue Mar 1, 2019 · 1 comment
Labels

Comments

@ikedas
Copy link
Owner

ikedas commented Mar 1, 2019

With EL7, when Sympa uses any LDAP feature, it may crash with message such as:

Mmm dd hh:mm:ss xxxxxxxx wwsympa[XXXXX]: err main::#1571 > main::do_sso_login#3692 > Sympa::WWW::Auth::get_email_by_net_id#370 > Sympa::Database::connect#123 > (eval)#2 > (eval)#31 > (eval)#31 > Net::LDAP::BEGIN#31 > (eval)#31 DIED: Can't locate IO/Socket/INET6.pm in @INC (@INC contains: /usr/share/sympa/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/Net/LDAP.pm line 31.

This is due to a bug in perl-ldap 0.64 or earlier. See RT 100151. EL7 bundles perl-ldap (perl-LDAP) 0.56.

A workaround seems installing perl-IO-Socket-INET6 (even if the host did not enable IPv6). Should we add it to dependency of EL7 package?

@ikedas ikedas added the bug label Mar 1, 2019
@xavierba
Copy link
Collaborator

The dependency could be conditionally added with a comment clearly referencing why it has to be added. I assume EL6 is impacted as well, as it ships with 0.40. Any current Fedora release does have 0.65 so is not impacted. I suppose EL8 will have 0.65 too.
Something alike:

%if 0%{?el6}%{?el7}
# Workaround bug in perl(Net::LDAP) <= 0.64
# https://rt.cpan.org/Public/Bug/Display.html?id=100151
Requires: perl(IO::Socket::INET6)
%endif

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants