Net::LDAP does not have an uri method in el5
In bug https://jira.ow2.org/browse/#991 a change was introduced to correctly close TCP connection. The change is http://websvn.ow2.org/comp.php?repname=lemonldap&compare[]=/branches/lemonldap-ng_version_1_4-bugfixes/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm@4986&compare[]=/branches/lemonldap-ng_version_1_4-bugfixes/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm@4987
Unfortunately, this breaks on el5 as the available Net::LDAP is too old and don't have the uri method. So we end with a 500 error like:
[Thu Oct 06 11:24:01 2016] [error] Can't locate object method "uri" via package "Lemonldap::NG::Portal::_LDAP" at /usr/lib/perl5/vendor_perl/5.8.8/Lemonldap/NG/Portal/_LDAP.pm line 122.\n
To reproduce, we just have to try to login with a non existing user (or with an existing user using a wrong password)
As el5 is supposed to be supported on this branch, it should probably be fixed (althrough el5 will be EOLed soon). As this is just used for logging, it can probably be ommitted