Subject: | Error messages not displayed |
Calls to the error and error_desc subs result in the following message rather than the error
being displayed:
Undefined subroutine &Net::LDAP::Util::ldap_error_desc called at /usr/local/share/perl/5.8.7/
Net/LDAP/Message.pm line 113, <DATA> line 667.
The problem is easily fixed by adding the line
use Net::LDAP::Util;
to Message.pm;
The attached patch can be applied with
patch -p2 -d perl-ldap-0.34 < patches/perl-ldap-Message.patch
Subject: | perl-ldap-Message.patch |
diff -Naur perl-ldap-0.34/lib/Net/LDAP/Message.pm perl-ldap-0.34-modified/lib/Net/LDAP/Message.pm
--- perl-ldap-0.34/lib/Net/LDAP/Message.pm 2007-02-10 23:44:18.000000000 +0000
+++ perl-ldap-0.34-modified/lib/Net/LDAP/Message.pm 2007-05-10 09:17:03.000000000 +0100
@@ -6,6 +6,7 @@
use Net::LDAP::Constant qw(LDAP_SUCCESS LDAP_COMPARE_TRUE LDAP_COMPARE_FALSE);
use Net::LDAP::ASN qw(LDAPRequest);
+use Net::LDAP::Util;
use strict;
use vars qw($VERSION);